Grasshopper

algorithmic modeling for Rhino

I'm using ghpython to batch-edit properties for a large number of clusters in a Grasshopper definition. Basically, I want to standardize some metadata before exporting these clusters as UserObjects.

  • Name, NickName and Description are settable directly via GH_Cluster--OK, this appears to be straightforward
  • Author properties (Name, Website, etc.) are gettable via GH_Cluster.Document("").Author, but the interface is read-only--a bit more complicated... does the SDK expose an alternate method/ interface for setting these values?

thanks

Jamie

Views: 412

Replies to This Discussion

The Author property is internal, not public, so you can't officially access it. However using Reflection (or whatever the Python equivalent is) it should be possible to assign a new GH_Author instance to the Author property of a Cluster instance.

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