Jump to content

Duplicate Object Along 3D Poly Node

Recommended Posts

I'm trying to figure out how to duplicate on object (symbol) along a 3D polygon with a marionette node. The command Edit>Duplicate Along Path works great but not in a custom marionette script. Any ideas?

Share this post

Link to post

The way I would do this is to used a Divide Curve node which is in the NURBS folder. This will give you a series of 3D points, then you duplicate your object and move those duplicates to the points. This will give you a path array based on number of divisions of the path, but if you want to do it by distance, you would have to do some math where you figure out the length of the curve/3D poly, then get your number of divisions that way.

Share this post

Link to post

@ericjhbergHi, Here is a network where i duplicated along a path a series of lights. Right click to see the network and same to change the control geometry which is the polyline. Alter the poly and exit out and the path and items change. HTH

Duplicate_object_along_path.vwx

Share this post

Link to post

@ericjhbergHi, here is a simplified version, run the network and the symbol will be distributed along the path. When you create the symbols you have to tick symbol options convert to a group otherwise it will not appear along the path. HTH

Duplicate_object_along_path.vwx

Share this post

Link to post

Thanks so much Alan, I was able to make it work as far as duplicating along the path and use a math turn around to divide the path evenly per a defined spacing.

The next problem is orientation. The duplicate along path command allows you to 1) center objects on path, 2) keep them tangent to path and retain the original orientation. How would I go above setting rotation angles tangent to the created points along a NURBS curve in this example?

Share this post

Link to post

Also, is there a 3D symbol node that accounts for Z values in placement? The basic library version only factors 2D points.

Share this post

Link to post

@ericjhbergHi,

Have a look at this post Road the items are at right angles to the curve or you can set them as desired. HTH

In the lights original post yo can alter the orientation of al the lights. Could set up principle for  other using separate rotate nodes. Post a pic of what you are after.

Edited by Alan Woodwell

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.

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.

×

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.

×

• KBASE
• MARIONETTE

×
• Create New...