Jump to content
Developer Wiki and Function Reference Links Read more... ×
Palle

Lists in lists

Recommended Posts

Hi all, 

 

I'm building a script that generates a row of hanging long sheets of vinyl for a theatre production. To randomize how they fall on the floor, I want to alter the individual values of coordinates that define the NURBS curves they are built out of. I would generate the list of randomized coordinates, and feed that into the curve node, but since the NURBS curves are defined by a LIST of coordinates, I can't make it work. I can't feed a list into a list, without the last list collating the values in to one list? 

 

Suggestions are much appreciated, 

Palle

lists in lists.vwx

Share this post


Link to post

To be clear - the task for me is to make x copies of the hanging sheet shown in the file. Can anybody suggest a better way to get x copies of it with randomized properties? In reality it's only two z-values per sheet that needs randomization. 

 

Palle

 

 

Share this post


Link to post

If your NURBS surfaces always follow the same curvature and change only in the length that they lay on the floor, you can create a bunch of surfaces that are the same size, then use the Extend NURBS node to extend each in a random manner. The Extend NURBS node only takes a single length value as the extension, so inputting a random list of lengths to extend a list of surfaces should work.

Share this post


Link to post

Thanks Sarah, but unfortunately individual curvature is exactly what I'm looking for... still haven't quite figured it out.. 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

 

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.

×