Jump to content

sbarrett

Vectorworks, Inc Employee
  • Content Count

    228
  • Joined

  • Last visited

Everything posted by sbarrett

  1. The string nodes are where you input the different layer names you want to use. If you look at the OIP for the Layer List wrapper, you can see where to change the layer names. The series node creates a list of numbers based on the number of layer names you input. If you want 4 layer names, the series node will create a list of the first 4 index numbers that will call the first for layer names from your list: 0,1,2,3. If you wanted to pull specific names instead, you would skip the series node and just input the index numbers you wanted to call.
  2. Hi Mark - Here is a network for adding multiple layers - to take specific items from a list, use the Get Item node from the Data Flow category.
  3. Here is an update to this file - the output of the nodes was not correct.
  4. Hi Altivec, right now we don't have the capability to create a dropdown menu from input ports in Marionette (if we do it would take a much better coder than me), but I have attached a node that I think might work. It is based on the node "Choice Item" in the "Records and IFC" category. you have to change the actual strings within the node to change the dropdown. However, if you are looking instead for an either/or option, where there is a test within you definition that decides which value, I would use the If node. just make sure that whatever node or definition you use for the "test" input ends with a boolean value. Examples of such nodes are those whose names have the words "Is" or "Equal." Hope that helps!
  5. Hey Luis - These look great! I am so glad that you enjoy Marionette as much as I do. Here is a suggestion for using lists to streamline your definitions...
  6. Tim - I would start with one of the aspect of the wall - a definition can get complex and overwhelming very quickly - but if you break down the problem into smaller projects you can combine them later. With the wall for example, don't try to build a parametric brick wall, try creating a series of locus points in 3D. Then try distributing rectangles along a line, etc. If you think of a project in much smaller, simpler steps it will be easier to build in Marionette. Also, those individual parts can be used over again in different definitions.
  7. Yes I definitely think it would be possible, although you would go about it differently in Marionette than you would in Grasshopper. In Marionette, I would suggest you create the bricks first and distribute them (Move) to points along a sine wave line at each brick z level. You might need to do a little clever maneuvering to get the tangent vectors for each point (because there isn't a tangent node that I am aware of), but once you do, all you need is to translate those vectors into a rotation and use the rotation node along with the move node. There are several nodes that work similarly to Grasshopper's Dispatch component, and they are in the Data Flow menu. For example, Filter, If, and Unzip are all nodes that parse lists. I hope that helps - If you get stuck, I will be happy to offer suggestions!
  8. Here are a couple wrappers that output sine and cosine waves. I thought the math enthusiasts might find these useful. Sine Wave.vwx
  9. Control geometry is definitely great when creating marionette objects, but if your goal is not necessarily to create an object but a system, the name node works well too. Named geometry can also be tucked away within a wrapper. All you need to do is give the Name Node a name and wrap it. Then double click to edit the script and paste the named geometry inside. That way your geometry isn't visible but still always available. You can edit the geometry any way you like from inside the Name wrapper. To name an object, go to the data tab in the OIP and type in the name at the top.
  10. Here is the node with the proper output - it gives the memory location of the object instead of the handle type, but it works properly if you try to parse it or manipulate it later. The vs.Marionette_DisposeObj() is code I snagged from another node - this entire node is a Frankenstein of other node parts - it is one of the earlier ones I made. It may not be pretty, but it works!
  11. Hi Kevin - my node was missing one line of code. Here is an updated version. Now it should create the right amount of objects.
  12. Hi guys, we are happy to take suggestions on new nodes. We definitely have more in the pipeline. When I started using Marionette I was very well versed in Grasshopper but not necessarily in coding. I have really liked being able to access the code behind the node and I have been experimenting with some of my own nodes. I have attached a file with some of the nodes I have created so far. Granted I am still an amateur at coding but this file does include some array nodes. If you have any suggestions on how to improve these nodes it would be greatly appreciated!
  13. Mark I am also getting a crash with this file - however if I convert the marionette object to a wrapper, it works without crashing.
  14. Hello Kevin and Michael, the best way to move an object is to use the Move Node in the Operations category. for the offset input, you can use a "point2" node, "point3" node, "vector2" node or "vector3" node. all of these are in the Input category. You can also use "Point3D" or "Point2D" from the Points category. For each of these nodes, you can set the x- y- and z- values the DISTANCE you want to move the object in each of the three directions. It works just like the move command in VW. The Rotate node works in a similar way. You can use any of the 3D point or vector nodes as your input, and if you want to rotate an object within the xy plane (as you would a 2D object in plan view) you make the z value of your 3D point node the angle that you want to rotate the object by. Each x- y- and z-value represents the axis around which you will rotate the object. I hope that answers your questions! Sarah
  15. Here is a file with some Platonic Solids as nodes and Marionette objects. The faces of the solids are in the form of 3D polygons.
  16. Attached is a file that can be used as an exercise to practice Marionette. Going though the saved views, you can follow step by step instructions to build geometry. There are also files with the solutions to the exercises. Tutorial_01_Exercises.vwx Tutorial_01_Solutions_1-5.vwx Tutorial_01_Solutions_6-7.vwx Tutorial_01_Solutions_8-9.vwx

 

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.

×
×
  • Create New...