Jump to content
Developer Wiki and Function Reference Links ×

Need some help with First Marionette


Recommended Posts

I am needing a marionette that will create duplicates of an object by user input, move the object by a distance determined by user input and rotate each duplicate by user input angle.

 

For example, if I have a rectangle extruded to .75" and would want to be able to have the marionette make 18 copies, move each duplicate .75" from the previous in the y if looking at a front view and rotate them 14.4degrees.  

 

I have watched countless videos and read countless post, my objective is not only to have this marionette to use but to understand the process.

 

 

Link to comment

Thank you so much Niels.

 

Everything works great except that i didn't know i needed the result to be a polyline or 2d polygon for what i need to do with the result.

 

I modified your network to change the result to a 2d poly but now I get both the 3d result and the 2d result with (1) extra (2d).  The shapes I use for this will be random so this example doesn't use the triangle.

 

Thanks again for all of your help...i think i'm learning something.

Rotating Extrudes v2022 Copy2.vwx

Link to comment

What you could do to get rid of the 3D polys that you don't need is just delete them with the delete node like this:

1554756610_Schermafbeelding2023-03-23om09_57_23.png.de46655d3eb88db62659ef61381ee83d.png

 

I noticed that the last 2D poly was rotated but wasn't moved. So this is another change you could make to the network to fix that. Link the "add 1" node to both "Series" nodes. Because the Series node produces a list that looks like this:

  1. 0 - for the original object
  2. Spacing * 1 - for duplicate 1
  3. Spacing * 2 - for duplicate 2
  4. Spacing * 3 - for duplicate 3
  5. Spacing * 4- for duplicate 4
  6. Spacing * 5 - for duplicate 5

As you can see, this list has a length of 6 (Number of duplicates + 1).

 

227951401_Schermafbeelding2023-03-23om09_57_18.thumb.png.2c92fac5cb4ccfc64e9c1eb91adfc0c1.png

 

 

Link to comment

Thanks again Niels for all of your help.  I made those changes and it works great....but then I thought, it would be nice if it would scale the object too.  I have attached the network that got me the closest.  If i am trying to scale down and enter .95 it works on one of the objects but scales the other one bigger.  I moved the scale node around and also the tried running through the add1 node that really messed it up.  I feel like I'm pretty close, hopefully you have time to take a look.

DupRotScal.vwx

Link to comment

Hi,

 

I had time to take a look at the latest version of your network.

 

You added a "Series"-node to scale every single duplicate of your shape. The description of this node says that it "Creates a series of numbers beginning at start and increasing by step for count cycles" and that is exactly what it does. I added the "Print Debug"-node to show what the output of the "Series"-node is. That's why the shapes are scaled to 190%, 285%, 380% et cetera.

1705202778_Screenshot2023-03-27at09_17_35.thumb.png.c414b5cd5bae71373e57e6c78c0b5d9c.png

 

What I would suggest is that you scale the input object at the very beginning of your network, before duplicating it. Then you don't have to scale every single duplicate because the original object is already at the right scale.

 

1630330835_Screenshot2023-03-27at09_23_06.thumb.png.0b569d12b2c241acbd5afe23cebda521.png

 

Instead of the Print Debug-node you can also use the Debug Mode image.png.f6562038d019d7355227f948b6e2c46c.png of the Marionette Tool to see what data flows through your network. You can read more about this here: https://app-help.vectorworks.net/2023/eng/VW2023_Guide/Marionette/Inserting_a_node with_the_Marionette_tool.htm

 

Good luck!

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...