# Marionette - Networks

## 46 files

1. #### Rectangle Packing

The heart of this Marionette example is the RectPack node. A node with over 2600 lines of code!
It supports dozens of packing algorithm to pack rectangles on another rectangular area in a space and time-saving way.
The right combination of packing and bin algo gives the ability to pack rectangles in a way you want to have them on your machines (as close as possible, always cut complete board, less cuts etc.)

Actually not even myself know, which packing algo ist right for which use case.
Also for professional use case, usually there is a machine dedicated software, which packs the port in a way which match best for the machine.
So I see the main use case to pack parts on a board for milling them on a cnc-machine as example for model-making. Workflows which uses a guillotine-workflow (always cut the whole board) often have special requirements which maybe could be reached with the choice of packing algorithm or maybe can not.

The Marionette Example based on foundational work:
http://www.secnot.com/   Python code for packing algorithm
Jukka Jylang - A Thousand Ways to Pack the Bin - A Practical Approach to Two-Dimensional Rectangle Bin Packing (2010)
Huang, E. Korf - Optimal Rectangle Packing: An Absolute Placement Approach (2013)

General Features:
- Input of basic data like length and width
- object input (node detects if part input are objects and process them like rectangles)
- sort by material
- use a list of stock materials
....

Not all input combinations works at the moment. Recommended to use the existing examples to get correct input values.

(0 reviews)

Updated

2. #### Circular Growing and Filling

During my last Marionette-Project, I produced some simple geometry nodes. Which maybe can be useful to can make geometrical constructions instead of mathematical (trigonometry) calculations.
The Nodes:
"Perpendicular from Point to Line", "Parallel from Line through Point", "Circle-Circle Intersection", "Line-Circle Intersection", "Line-Line Intersection", "2 Circle Middleline" and some more.
Also the more Complicated Nodes "Circle tangent to 2 Circle", "Point or Circle tangent to 3 Circles"

(1 review)

Submitted

3. #### Image Processing

This network will read the data in an image existing in your file, for example, the color of each of the pixels, and create rectangles/extrusions with the same fill color. The extrusions are created at a height correlating to their brightness. The data extracted from the image could be used in many additional ways.

(1 review)

Updated

4. #### Tiles / Verlegewerkzeug

This tool is available in English ("Tiles") and in German ("Verlegewerkzeug"). The contents are the same only translated.
Dieses Werkzeug ist auf Deutsch ("Verlegewerkzeug") und auf Englisch ("Tiles") verfügbar. Die Inhalte sind die gleichen; nur übersetzt.

Tiles will help you when planning patterns of tiled sections, brick bonds, laying patterns, ceiling or fassade panels and evaluate it through datavisualization and  worksheet.
For extensive information on usage of the tool, please consult the manual.

Das Verlegewerkzeug hilft Ihnen in der Planung von Fliesenspiegeln, Fassadenelementen, Mauerwerksverbänden und der Auswertung als Datenvisualisierung und Tabelle.
Für umfangreiche Informationen über die Bedienung des Werkzeugs, lesen Sie bitte die Anleitung durch.

Created by / erstellt von ComputerWorks GmbH.
Compatibility / Kompatibilität: Vectorworks 2019 +.

(1 review)

Updated

5. #### Symbols in Rows

Places a Marionette object, which contains symbols from a specific symbol folder. Offset and rows, can be defined. Handy for a quick and printable preview of symbols in a specific folder.

(2 reviews)

Updated

6. #### Create Site Model from Mesh

This is a Marionette network that converts a mesh to 3D locus points. This is very useful for converting meshes of terrains imported into SketchUp from Google Earth into Vectorworks Site Models. Once you have a SketchUp mesh, import it into Vectorworks and give the mesh a name. Take the wrapper in this file and place it in the same drawing. Change the name of the mesh in the OIP of the wrapper to the name you gave the SketchUp mesh. Raising the number of the grid density will make your site model more accurate, but it might take the wrapper up to a minute or two run. When you run the script, you will get a group of 3D loci. Ungroup the loci, and keeping them selected, go to AEC -> Terrain -> Create Site Model... (in the Architect Workspace). Choose your settings and click ok

(2 reviews)

Submitted

7. #### SpacesfromList.vwx

This Marionette Script creates multiple space objects from worksheet data.
A very nice and time saving Marionette script to automate a routine peace of work.

Please consider, that the the script takes the area column and calculate the square with that. If you have a language settings with comma instead of points for decimal seperator, the calculation will fail. Use points as decimal character or eliminate decimal places in your list

(1 review)

Updated

8. #### Halftone

This is my first marionette and it's based on @Marissa Farrell's image processing!

It takes an image and creates a Halftone object of it with black circles:

IMPROVEMENTS:
Final objective is that I'll add cnc DXF milling information to this marionette so that it can be milled on a CNC machine.
(We've milled Halftone parts in the past using Jason Dorie's Halftone program http://jasondorie.com/page_cnc.html)

Result:

Detail:

Maybe add a line milling. The image below is milled by us in the past with Jason's program.

Be able to change the dimensions of the final halftone image. Now it takes the pixel width and height of the image, but I would like this to be some adjustable parameters. Changing the height and width with Set Height and Set Width has no effect. Somebody has a suggestion on how to do this?

Now the marionette looks at the color of each pixel on a grid with step "Distance between Circle Centers". Related to that color, it creates a circle with according radius on the position of that pixel:

The problem with this method is that that single pixel on the grid has total control on the radius and the one pixel just next to the chosen one has no relevance. A better mechanisme would be that the size of the circle is related to the average color of all the pixels in the area of the square "Distance between Circle Centers"x"Distance between Circle Centers". Anyone with some advice on handeling this? I got some little progress on it:
Here we have 2 lists. One with all the pixels. X,Y coordinates of the pixel, Z is the radius of the circle according to the color. The other list has the X,Y values of the centers of where the final circles have to be placed.

Following this we need to check the distance of all the image points to the center points. If this is smaller than a condition, then that point's radius had to be taken into account for calculating the average radius of that centerpoint. Any one has a quick hint on how to create this in marionette?

(0 reviews)

Updated

9. #### Panel Arrays

In Vectorworks, there is a command that allows the user to build a surface array, i.e. to array a symbol across a NURBS surface. This is a powerful tool, but creating patterns with multiple symbols is currently missing as an option in the software.

With this in mind, these two Marionette scripts are meant to help create panel patterns on a wall with existing 3D symbols:
·     The wrapper “Panelization with Rotation” arrays a single symbol across a surface, but can apply a rotation to that symbol in either a user-defined pattern or randomly.
·     The wrapper “Panelization with Multiple Panels” arrays multiple symbols across a surface in either a user-defined pattern or randomly.
For both scripts, the horizontal and vertical reveals between panels can be set separately, allowing for quick visualization of multiple paneling design options.

These scripts only work when the NURBS surface is flat and the face is rectangular — the symbols will not follow a curved surface. This is meant to be used for panelized walls, which are much more likely to be flat. (The surface however does not have to be vertical; it can be slanted or horizontal.)

The panels are distributed from left to right, top to bottom across the surface — if the pattern does not fit exactly across the surface, there will be extra room left at the right and/or bottom edge of the surface. When paneling a wall, it is more likely that the full surface or the reveals will be resized to fit the appropriate number of panels versus trimming the panels along one side.

(0 reviews)

Submitted

10. #### Create Multiple Shells

This set of wrappers are good for creating multiple shells from a solid object.
Steps: Name you solid object > set the desire thickness > spacing > run the script.

(0 reviews)

Submitted

11. #### Panelization

This file was created by Proving Ground to analyze the panelization of NURBS surfaces. Based on 3 NURBS curves, it creates a lofted surface, then converts it to a series of 3D polys. It then compares the 3D polys to the curvature of the surface at that point and states how out of plane each panel is. It also uses a color gradient to indicate where it is out of plane. It then makes a copy of the panels and lays them flat in a grid.

(0 reviews)

Submitted

12. #### Suction Effects

An Example which shows, how to collect objects on one or more circular area(s) and modify them. It could be use for gravity or suction effects.

(0 reviews)

Submitted

13. #### Journey Through Marionette - Part 3

Now that graphical scripting is a reality in Vectorworks software, my designing spirit has been fantasizing about many forms and shapes. I’ve been clicking the mouse for over 20 years and feel like our software is like an extension of my drafting board, but I recently learned that Marionette requires a different but exciting approach. Graphical scripting to me is a form of exploration in a foreign language, it satisfies my curiosity and offers instantaneous alternatives.

I’d like to share my experience and discoveries with Marionette and I continue to explore, and hopefully inspire you to give it a try and ultimately share the knowledge with our community.  Part 3:

MT-21-How to create a grid of objects.vwx
MT-22-How to duplicate array tiles.vwx
MT-23-How to create a grid and intersect fixed[1].vwx
MT-24-How to use get list length.vwx
WT-25-How to create spiral with arcs and clipping mask.vwx
WT-26-How to make an object and a copy.vwx
WT-27-How to duplicate proportionaly.vwx
WT-28-How to create a cube.vwx
WT-29-How to grow volumes by remap domain.vwx
WT-30-How to clip two squares.vwx

(0 reviews)

Submitted

14. #### Apartment Area

This nice script summarize all Space-Areas, which are part of the same Appartement Number and shows the result in a symbol based stamp. Alternatively you can get apartment. Alternatively we can pull out sum of apartment area with a worksheet. But this Marionette is also a nice method to do this.

Instructions:
1. The Marionette Objects access to the field "11_Room ID" of the space object. Every other field can be used if necessary by editing script
2. with the Marionette PIOs field "Raum ID" you can tell the stamp, which apartment should be displayed.

Apartment Area v1.2.1 v2019.vwx

(0 reviews)

Updated

15. #### Component Wall from Surface

Here is a script that converts a NURBS surface to a wall with components that can be exported to IFC. The wall is an Auto Hybrid object made up of 3D Solids that match the thicknesses and attributes of the components of a referenced wall style. CWS_1212_IFC.vwx

A couple caveats: Make sure that wall style names do not  have a single or double quotation symbol in the name - it will get misinterpreted by the String Node. Also, if your base surface is an Interpolated Surface, use the tool in the 3D Power Pack - Rebuild NURBS... - to convert it to a standard NURBS surface.

(0 reviews)

Submitted

16. #### Growing Lines

This example is based on a custom node. which returns a line pattern. This pattern is based on several while and random loops. I have not found a proper way to run a while loop over a marionette network so this is better to create in a custom node.

It is easier to play with the example, than explaining exactly how it works.

Have fun with it. This is my base study to find a workflow to project any pattern on a NURBS Surface which would be a real scope of usage.

Movie Link (first Part of Movie)
https://youtu.be/GcFwW-k5Lms?list=PL8s_WkTvFQ2YdFlMfU7Teuh5QrmsO03gW

Growing Lines 1.0.0.mp4

(0 reviews)

Updated

17. #### Area Verification

This tool was
commissioned by ComputerWorks GmbH
edited by: Markus Graf and Pascal Völz
supervised by: Antonio Landsberger

Compatibility: Vectorworks 2019 and higher.

Area Verification is a Marionette tool used to graphicallly and tabularly verify the surface area of spaces/rooms (circle, rectangle, poly line & polygon) in the class "Rooms". To do that the Marionette network divides the areas into calculatable subareas: circles, rectangles, triangles.
The graphical area verification using subareas is often required when applying for permits (building construction, landscaping).

For easier usage a wrapper node is provided.

How to use:
a) Place the geometries (spaces/rooms) in the class "Rooms".
b) Run the wrapper node.
c) Update table.

To do:
- update table when running script
- implement an add-on to turn spaces into polygons (soon)

(0 reviews)

Updated

18. #### Hedge Along Path

This Marionette Script creates a simple Hedge along a path.

new Wrapper:

'Print Point Order' - helps you to orchestrate streams of points.

(0 reviews)

Submitted

19. #### Fill Spaces With Symbols

Imagine you have client, which delivers you a room list. And a list, which objects have to be in this rooms. You can consider this lists with hundreds of rooms on your left screen and click them one by one in your rooms. You will make errors and your eyes will get squared.
Another real interesting example how you could accelerate a routine job with a marionette script.

(0 reviews)

Updated

20. #### Class Legend Attributes

This Network ist not very flexible (world based values, just one row) but still useful.
You can insert and and ungroup for individual layout etc.

(0 reviews)

Updated

21. #### Journey Through Marionette - Part 1

Now that graphical scripting is a reality in Vectorworks software, my designing spirit has been fantasizing about many forms and shapes. I’ve been clicking the mouse for over 20 years and feel like our software is like an extension of my drafting board, but I recently learned that Marionette requires a different but exciting approach. Graphical scripting to me is a form of exploration in a foreign language, it satisfies my curiosity and offers instantaneous alternatives.

I’d like to share my experience and discoveries with Marionette and I continue to explore, and hopefully inspire you to give it a try and ultimately share the knowledge with our community.  My first attempts were all 2d based, nothing great, just crawling before walking. Here is a list of files.

MT-01-How to make a line.vwx
MT-02-How to make a circle.vwx
MT-03-How to rotate a rectangle.vwx
MT-04-How to duplicate a line.vwx
MT-05-How to duplicate a rectangle.vwx
MT-06-How to duplicate and rotate a rectangle.vwx
MT-07-How to create four rectangles.vwx
MT-08-How to class objects.vwx
MT-09-How to create spiral with lines.vwx
MT-10-How to duplicate and scale a circle.vwx

(0 reviews)

Submitted

22. #### Tiles

This tool was
commissioned by ComputerWorks GmbH
edited by: Markus Graf and Pascal Völz
supervised by: Antonio Landsberger

Compatibility: Vectorworks 2019 and higher.

Tiles is a Marionette tool for bond pattern planning using geometric shapes (circle, poly line, polygon, rectangle) to show distribution of whole and cut tiles.
For easier usage a wrapper node is provided.

How to use:
a) Place the geometries (rooms) in the class "Rooms".
b) Place the arrow (in class "Direction") inside the room you want to get the tile pattern for.
c) Change the values according to your liking.
d) Run the wrapper node.
e) Update table.

To do:
- update table when running script
- implement an add-on to turn spaces into polygons (soon)
- implement more than one bond pattern

(0 reviews)

Updated

23. #### Labyrinth

This script generates labyrinths. Just for fun.

(0 reviews)

Updated

24. #### Image Processing

This is based on Marissa's nodes. (The Wizard of Marionette)

(0 reviews)

Submitted

25. #### Hexagon Grid / Honeycombs

Here is a wrapper for creating honeycombs.

(0 reviews)

Updated