Grasshopper

algorithmic modeling for Rhino

apply transformation only to some elements of a list but keed the list organisation

Hi !

 

Say i have a list (or tree) and i want to modify only some of the elements yet after i'm done with it, i want to have the exact same list/tree structure and indexes of elements (meaning the altered versions of the modified elements should take their place, and the elements that weren't modified should stay put in their positions).

 

One way is to apply the transformation to all elements, but to those that you want unmodified to give inputs that make the result the same as the initial stage (ex: 0 at the angle of rotation). I am looking 'though for a more elegant way of doing things (if there is one), so that no "ghost" transformations are needed.

 

Thanks for taking the time!

Views: 241

Replies to This Discussion

Hi Andrei,

Maybe this recent discussion http://www.grasshopper3d.com/forum/topics/list-replacement-mystery will give you a solution to do what you want.

i got the chance to look at this just now. thanks a lot for the link!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service