By DomCThe 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)
- Input of basic data like length and width
- Input of additional data
- 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.
By DomCThis 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
By sbarrettThis is an old file that I have recently resurrected. It is one of the first files I ever created and represents my favorite way to use Marionette: infographics. I thought I had posted it here, but I can't find it, so I figured I would post it again. This file contains some custom infographics that I created based off of the polys in this file that have records attached. I have included a second layer that has some chart nodes from the default library.
By DomCAbout this File
This tool is available in english ("Apartment Tag") and german ("Wohnungsstempel"). The contents are nearly the same just translated.
This Marionette Tool summarize all Space-Areas, which are part of the same Appartement Number and shows the result in a symbol based Marionette stamp. Alternatively we can pull out sum of apartment area with a worksheet. But this Marionette is also a nice method to do this.
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 "ApartmentID" you can tell the stamp, which apartment should be displayed
3. With the Checkbox "Layer from Apartment Tag". You can make the Tag collecting spaces of the tag's layer. Otherwise it will collect areas from the layer of the layer popup
4. You can exclude Spaces with specified keywords. Delimiter for Keywords is "$"
Über diese Datei
Dieses Werkzeug ist auf Deutsch ("Wohnungsstempel") und auf Englisch ("Apartment Tag") verfügbar. Die Inhalte sind bis auf die übersetzten Bezeichnungen nahezu gleich.
Der Marionette Wohnungsstempel fasst Wohnungsflächen zusammen und zeigt diese in einem Symbolbasierten Marionette-Stempel an. Raumflächen können auch mittels Tabellen ausgezogen werden. Der Wohungsstempel ist eine komfortable alternative.
1. Räume welche zur gleichen Wohung gehören, werden mit dem Standardfeld "Raum ID" identifiziert. Auch andere Kriterien für die Wohungszugehörigkeit können festgelegt werden, dazu muss das Script geändert werden.
2. Im Feld "WohnungsID" wird eingestellt, welche Wohung angezeigt werden soll.
3. Mit der Checkbox "Ebene von Wohungsstempel" lassen sich explizit die Räume auf die Ebene des Wohungsstempels eingrenzen. Ist die Checkbox deaktiviert, gilt die Einstellung "Räume von Ebene:"
4. Räume mit bestimmten Namen, können hier ausgeschlossen werden. Trennung der Namen erfolgt mit "$"
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 +.
By sbarrettHere are files that I use to do Marionette training. I thought that it would make sense to add them to the forum because they are useful in their own right, even without me talking through them. The Marionette 101 and 102 files go step by step through building Marionette networks. In both files, you can cycle through the Saved Views to see each iteration of the network and what geometry it produces. When you create a Marionette network you don't necessarily place all the nodes linearly from left to right, you build it in chunks of functionality, and the nodes that make up those chunks don't always follow from left to right like words on a page. Everybody might build their networks a little differently, but in these two networks, I show how I would solve these particular problems. The first network is a series of cubes that grow in size and that series can grow and rotate. This network has also been converted to a Marionette object and contains sliders in the final version. The second network is a series of squares that have a spectrum of colors applied to them. Because several steps of this network do not generate geometry, Saved Views have been added showing Print Debug nodes that display the values of the network.
By DomCIf NetVolume of Wall components has to be written in a custom pSet (if this is a special requirement), this Network maybe provide a solution.
If you export Base Quantities, you get component volumes exported. Which is the normal-case to export the component quantities.
What does the Script(s) do:
1. The first Script creates record fields for every component Name exists in the Document (Walls have to be in the drawing, not just as a style).
2. The Second Script gets Wall component NetVolumes and writes it in the Record attached to the Wall for every component Name.
3. So you are able to use the Data-Manager to attach this component informations to the Wall Body and be able to export is as a Custom pSet to ifc (if this is a requirement in a specific project)
By C.WittmannDieses Netzwerk verteilt Symbole 2d oder 3d entlang einer planaren Polylinie und ordnet diese in der Konstruktionsebene an, in welcher die Leitlinie sich befindet.
This network distributes symbols 2d or 3d along a planar polyline and arranges them in the construction plane in which the guideline is located. This text was translated from German into English with google translator. No guarantee for translation errors
By DomCThe standard behaviour of the extrude along path tool is to center the profile on the path and after creation we are able move it. This works pretty good. If we use the extrude along path node, is is not so easy to move the profile group after creation. This example shows how to do.
1. Put a 2D locus point in your (blue) symbol as a reference point and put it in the background (cmd/ctrl + B)
2. the script will measure this point and after creation of the extrude along path it will move the profile group
- A custom node to get the profile group of the path
- A custom node to reset the extrude along path object after moving profile group
By DomCThis Network shows how to create fields from an existing xls or txt file.
By DomCThis Network ist not very flexible (world based values, just one row) but still useful.
You can insert and and ungroup for individual layout etc.
1. First delete all classes and replace to "none" or "keine"
2. copy the object on your file
3. If you do not delete classes on the original, you will paste the classes from the example in your file
This is a scenic design tool I created for set designers to help simulate sightlines quickly for those situations where scenery is moving around a lot during a show and you're trying to check for blind spots in arrangements, communicate with the director, or are designing something complicated in the round. While this program requires a 3D model to work it will only give you a 2D groundplan simulation. Because I'm modeling the blind spots using a lighting device to create the shadow projection there will be some slight error and the tool will be less effective on a multi-level set or significantly raked stage.
Directions for use are given in the file along with a series of buttons to run the program. In essence, you run a network to generate a sight line object and name it (e.g. House Right Seat), move the object to the location and adjust the sight line bounds, and then run another network to create a shadow projection simulation of what a person can see from that seat. Finally, you switch to fast renderworks to see the shadows and, if necessary, adjust the Bot-Z depending on where the z=0 point is in relation to the playing space.
I'm using a object naming system that takes user input and names objects with concatenation as they're are created, releases them to the user for manual modification, and then regains control in a separate network. This is still a little buggy and sometimes leads to VWX crashing (particularly the user clicks "cancel" after prompted to input a name), so save your file before running any of the networks here.
I'm still new to marionette so I appreciate any feedback.
Multiple experiments of profiles created from a nurbs surface in order to create multiple rails with dozens or hundreds of nurbs profiles simultaneously. This Marionnette is based off of Freeform truss objects, so all credit goes to @Marissa Farrell. Thank you!
By DomCDuring 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.
"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"
By sbarrettThis file contains a Marionette network that converts 2D polys into Massing Models. It reads the Record Format info attached to the poly and uses that information to create the Massing Model. It also transfers all attached Records to the Massing Model. This network is useful for converting shapefile data into Massing Models. To use the network, select the wrapper and make sure that all the fields in the Object Info palette correspond correctly to the objects that you want to convert. All of the info that you want to use to create the Massing Model must be in a single record, but all attached records will be transferred over by the script.
Also included in the file is a worksheet that allows you to calculate Floor Usage Data for each floor of a multistory building. If you have one type of usage on the first floor, and a different type of usage on the upper floors, you can calculate that in the worksheet. (If you have more than two types of usage, it can only calculate the first two types.) To change the usage type in the worksheet, just type the name of the usage type, like "Retail" or "Residential" into the top row of one of the Area by Usage Type Columns. The lower rows will adjust appropriately.
By Nico_beImagine: You have just received a file containing a large number of objects that need to be transformed into symbols. This typically happens when I buy a file containing objects that are not symbols after import.
This tool transforms the objects that meet the chosen criteria into symbols in OIP and places them in a new folder whose name you specify.
In OIP Choose : The symbol préfix; the name for the symbol folder and the criteria configuration.
Automatically convert groups V2019.vwx
By Nico_beIn French :
Parfois un plan de mesurage ne contient que les textes des niveaux sans aucun symbole ou point 3D. Il n'est donc pas possible de créer un terrain 3D.
Ce script permet de créer pour l'ensemble des points des points 3D ayant pour valeur Z le texte lui même, sur une autre couche .
In English :
Sometimes a measurement plan contains only the texts of the levels without any symbol or 3D point. It is therefore not possible to create a 3D terrain.
This script makes it possible to create 3D points for the set of points having the value Z the text itself, on another layer.
By sbarrettCreating stories, levels, and layers can be a tedious process, especially for tall, multistory projects. This wrapper allows you to automate that process based on an overall building height, typical floor heights, and default levels. You can create up to 4 Layer Levels and 2 Layerless Levels. To create fewer Levels, leave any of the Layer 1, Layer 2, Layer 3, Layer 4, Layerless Level 5, and/or Layerless Level 6 fields blank.
To use this script in a new file, simply import the wrapper into the file, place it in the drawing, and run the script. The settings of the script are very similar to the levels and layers created in the Vectorworks template, but you can customize them in the OIP of the wrapper. To change the Story suffixes and Story names, double click on the wrapper and the select the Get Story Names node. There are settings that you can change in the OIP of this node as well.
NOTE: Existing stories and story-associated layers that match the names of the new stories and layers will be deleted every time you run this script. Existing stories that DO NOT match the names of the new stories will not be deleted but may interfere with the creation of new stories. It is recommended that this script is run in a file without existing stories, levels, or story-associated layers.
By AlanWHi just a file that may assist in the learning of Marionette.
I have a lot of files that i feel should be out there that may assist. Hope this is the right location to place them.
Erstellt aus in Vectorworks importierten IFC- Schlitze-/Durchbruchelemente native Vectorworks Schlitze-/Durchbruchobjekte mit allen Eigenschaften und Datenbanken des originalen IFC-Elements.
Informationen zur Anwendung entnehmen Sie bitte der Anleitung, die parallel zu dieser Datei als Download zur Verfügung steht.
Von: ComputerWorks GmbH. In Teilen basierend auf Marionette-Nodes von DCorpataux.
Kompatibilität: Vectorworks 2020.
Creates a pattern of parallel polys along the path of an input poly depending on widths and classes set by the user.
Erzeugt ein Muster paralleler Polys entlang eines Polys in Abhängigkeit der vom Nutzer festgelegten Breiten und Klassen.
By ComputerWorks GmbH.
Compatibility: Vectorworks 2020 and higher.
By DomCImagine 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.
By sbarrettIn 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.
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.