Jump to content

DomC

Member
  • Content count

    337
  • Joined

  • Last visited

Files posted by DomC

  1. 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.
     
     
     
    Appartment Area.vwx

    3 downloads

       (0 reviews)

    0 comments

    Submitted

  2. Number to Row Name

    If you need Worksheet-like Numbering like A, B, C .... AA, AB ..... AAA .... This node offers you an easy solution.
    There are two nodes for both directions.
     
    Limitations:
    1. Input from special characters etc. will result in wrong values or errors. 
     

    3 downloads

       (0 reviews)

    0 comments

    Submitted

  3. Name2Index

    Some Ressource Types (such as dimension standard or text styles) are handled by an index number. This node helps to find the index of those resources.

    6 downloads

       (0 reviews)

    0 comments

    Submitted

  4. Point Rectangle

    This node creates optional a rectangle and returns the corner points of that rectangle.
    Often there is a need of a rectangle and the corner points. If the rectangle is rotated, it can be a cramp to calculate the corner points. I hope this node can help to simplify marionette workflows.

    9 downloads

       (0 reviews)

    0 comments

    Submitted

  5. Create Design or Sheet Layer

    This Node creates a new layer and keep the active layer the active one. 
    It has a popup witch allows to choose sheet or design layer. It returns a  handle to the new layer or a handle to an existing layer with the same name.
     
    Like ever .. with not warranty try first in an empty file and be careful creating thousands of layers or layers with the same name as other objects in the drawing. 

    6 downloads

       (0 reviews)

    0 comments

    Submitted

  6. Move Symbol in Folder or create Folder

    Insert Symbol in Folder Node:
     
    1. Move the Symbol with the input name in the folder with the input folder name
    2. If folder do not exists it will be created. If no symbol name is inputted, the folder created also
    3. If the folder name is taken by another object, the folder will not be created

    4 downloads

       (0 reviews)

    0 comments

    Updated

  7. Get and Set Marionette OIP Parameter

    With this two nodes, we are able to set or get the parameter of an Marionette PIO or wrapper.
    Can be used to access the values in the OIP by script or another Marionette.
    The Screenshot shows an example in which every of those pillar is an own marionette PIO (Script as symbol to instance the PIO). 
     
    Note:
    It is not possible to write the parameters via Worksheet. Also it is not possible to read Marionette Object parameters directly into a worksheet. To read Marionette object parameters in a worksheet I recommend to write data into a record format and list those values in a worksheet.
     
     
     

    14 downloads

       (0 reviews)

    0 comments

    Updated

  8. Enhanced Rectangle

    What is the distance of the middle top point to the insertion Point (left bottom), if your rectangle has 175.5° degrees? Not so easy calculate the move vector or the rotation for that. This node can help you to use your time for other challenges. You can place your rectangles with every standard reference Point in any angle in degrees.
     

    7 downloads

       (0 reviews)

    0 comments

    Submitted

  9. Reset Object

    Some Objects needs to be Updated after Changing the Object Properties. In this cases this node can help you.
    Reset Object.vwx

    3 downloads

       (0 reviews)

    0 comments

    Updated

  10. Symbol Link Text

    If you have many symbol definitions and have to link text to record fields. This Marionette can help you.

    7 downloads

       (0 reviews)

    0 comments

    Updated

  11. Locus with Mastersnap Point

    This is an enhancement of the standard locus point, with OIP Mastersnap or not.
     
     

    3 downloads

       (0 reviews)

    0 comments

    Submitted

  12. Spaces with objects

    This node sorts out all spaces which have a collision with one of the input objects. Can be used to detect, if a space contains a specific object.
    For collision points, the space polygon and the object's bounding box is used. There is a OIP dim parameter for tolerance value.
     
    The vwx contains a quick and dirty test floor plan, nothing real 🙂

    11 downloads

       (0 reviews)

    0 comments

    Updated

  13. Set Parent

    This Node puts objects in a parent Object (symbol, group, etc.)
     
    Inputs:
    1. Handle to Object which put into a container
    2. Handle Input to Parent Object (use "get Object" node to use a named container here like a symbol definition)
    3. Object Info Option "Reset". Reset Bounding Box and other attributes of the parent object
     
    Set Parent.vwx

    3 downloads

       (0 reviews)

    0 comments

    Updated

  14. Create Symbol

    "Create Symbol" creates a new symbol definition on the active document. Refresh resource manager if you create a new symbol with this node by just switch to another document and back in the resource manager.
     
    This node does not use "List absorb" so you can just insert one object into the symbol definition. Recommended to first create an empty symbol and then use "Set Parent" to attach several objects into the symbol.
     
     
    Create Symbol.vwx

    5 downloads

       (0 reviews)

    0 comments

    Submitted

  15. Point Cluster.vwx

    The "Point Cluster"- node detects points, which are within a given distance from other points in the same scope with an own algorithm (not python 3rd party module needed).
     

    8 downloads

       (0 reviews)

    0 comments

    Updated

  16. Concave Hull

    This node gets points clockwise with a given minimum distance. 
    The node has an additional option in the info-palette. Follow Deadlock means, that the hull can follow back the same points that already was used as a hull point. Deadlock off means, that a point can't be uses twice as a hull point.
     
    The Algorithm behind the node:
    1. Check, which points are in range of the point most left (bounding box for speed optimization)
    2. Check, which points are exactly in range of the distance value
    3. Check which angle in cw direction is the smallest and connect to this point
     
    I think there would be a speed optimization possible with normalized vectors etc. So i would call this a beta version of the node.
     
    Computing the angles of the vectors takes a while if there are many points. in combination with the cluster node it takes about 17 seconds for 4200 points. Seven Minutes for 8800 points. So check number of clusters and numbers of points.
     
    The Idea was, to have a workflow for vectorize an image. This is a complexe project. Maybe it is worth to check other algorhitms with existing python external modules. But so far it works quite nice. 
     

    4 downloads

       (0 reviews)

    0 comments

    Updated

  17. Create Record from external File

    This example shows, how to create a record format with fields from an external csv or text-tab file with marionette.
     
    This example maybe needs the following know how which is not automatically is handled by the script:
     
    1. Save Text with excel, open office or any other application as separated text file or tab separated text file.
    2. Setup the "import txt" node-popup with the needed text encoding. Try utf-8, Latin1,  macLatin_2 or other encoding to handle umlauts or special character issues.
    3. The Exmaple just checks the first line of the text-file and creates record fields from them
    4. The path to the text-input in the attached example is related to the document path. Save first your Vectorworks document. Or use an absolute path input.  
    5. No warranty or charge for this script, play first on a new file or on the attached file.
     
    I whish you success with it
     

    16 downloads

       (0 reviews)

    0 comments

    Submitted

  18. 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.

    64 downloads

       (2 reviews)

    0 comments

    Updated

  19. Reshape Node 2D

    https://youtu.be/vuCvK4OwN80 German Movie
    https://youtu.be/Nm0te1zmpVY English Movie
     
    Structure of the Input:
     
    1. Group with Geometry group (send to back) and Reshape Zone definition (send to front). Best practice is to use a blue smbol without screen plane objects
    2. Reshape Zone group has further groups. Every reshape zones (polygons) is grouped with a dimension object. The dimension is the link to the script. The parameter name is a prefix of the dimension text
    3. Use one of the existing examples to understand the system
     
    Limitations:
     
    1. Supportes not 3D, Chain Dimension, path objects, rectangles. Container objects are not reshaped but moved (like the reshape tool)
    2. user origin has to be set to vectorworks origin
    3. not mix of screen-plane and layer plane. Use all layer-plane
    4.  ...
     
     
     
     
     
    Parametric Symbol v2018.vwx

    33 downloads

       (0 reviews)

    0 comments

    Updated

  20. Marionette Launch Video Facade

    This is one of the files used in the Marionette launch video. It was created by Dominique Corpataux at Computerworks.
     
     

    93 downloads

       (0 reviews)

    0 comments

    Updated

  21. Shuffle Numbers Example

    An Input of 4 different numbers. Out of that 4 values there are 40 shuffled numbers of the same values. Next value never is the same like preview value.
    This Example uses a custom "shuffle-node" (randomize input list with the option, no next value must be the same like preview value) and the "saldo-node" (returns a sum after every new value).
     

    13 downloads

       (0 reviews)

    0 comments

    Updated

  22. Basic Reshape SolidScale in x,y,z

    This Nodes breaks up and scale a 3D Solid Geometry and the result is similar like a 2D Geometry reshaped by the 2D Reshape Tool.
    The Input Geometry (Geometries) have to be grouped. You can input it from symbol or control geometry. 
     
    The Node is designed with some love to detail and make the job in many situation just right. It follows some rules:
    1. reference Point is left bottom back
    2. Overlapping geometries over the zero point to left, back or bottom are handled symmetric. You can use locus points to direct the correct symmetry.
    3. The nodes cut a geometry in 3 parts. the end parts are called "caps". The Node allows to scale the caps or the middle part (in most cases the right mode)
    4. It is necessary the input geometry is a group.
    5. Grouped Objects completely inside caps, will be moved as well
    6. Objects between the caps, will be moved half value
     
    This advantage of this node, is to allow an incredible fast production of a specific type of PlugIn Objects (Reshape in x, y, z direction Middle Part is scaled like Tables, Pillars, Handles etc.)
     
     Movies:
     
    Simple Example (Pillar):
    https://youtu.be/F6BIe8d0mTs
     
    More Complex Example(Window Element):
    https://youtu.be/pJ9R8UWyM7Y
     
    Further Examples:
    https://youtu.be/uRwDU-KTRjw
     
     
     

    110 downloads

       (0 reviews)

    0 comments

    Updated

  23. 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
     
    Spaces from List.vwx

    38 downloads

       (1 review)

    1 comment

    Updated

  24. 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
    - 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.
     

    193 downloads

       (0 reviews)

    1 comment

    Updated

  25. Parametric Metal Framework Cabinet

    A Text-Script based Marionette Object. 

    Technical Info:
    About 30 Options in the Object Info palette. And many if then combinations, which results in drawing/not drawing a part of the cabinet. I did this first with a graphical script network. But there was no possibility to NOT execute part of a graphical script because of an option. 

    It is just possible to execute/draw everything and then delete objects. Which results in a disadvantage of speed. So I decided to write code instead. Anyway, this is also something, marionette can be used for. 
     
    Youtube Link:
    https://www.youtube.com/watch?v=lUmXE-3ONlE
     

    67 downloads

       (0 reviews)

    0 comments

    Updated

 

  • 7150 Riverwood Drive
  • Columbia, Maryland 21046, USA
  • Contact Us | 410.290.5114

 

  • © 2018 Vectorworks, Inc. All rights reserved.
  • Vectorworks, Inc. is part of the Nemetschek Group.
  • ×