Grasshopper

algorithmic modeling for Rhino

Hi all!

I want to make some kind of search and replace function for objects names in rhino. One way is to reference objects from rhino extract their names, search and replace them in grasshopper and then bake them back with new attributes. But then I still need to find and delete orginal objects which is tricky.

I believe there is a way to change objects attributes directly like Luis Fraguada changes light properties in his video http://datable.net/modifying-rhino-object-attributes-from-gh/

Tried to change his script but modifying Rhino.DocObjects.LightObject to Rhino.DocObjects.ObjectAttributes didn't work for me.

Could anyone help me with it?

Views: 1475

Replies to This Discussion

my "modify object attributes" component in human does this - the trick is to call "CommitChanges()" on the object after you've assigned it new attributes. 

Oh, great! I had a previous version of Human missing that component.

Many thanks, Andrew!

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