Grasshopper

algorithmic modeling for Rhino

I would like to add additional output nodes from within my GhPython script, however I am somewhat confused about two things,

1. My understanding is that this is not possible because GhPython scripts occur during the solution. Is this correct?

2. If it is possible how do you go about it? I was trying to use the GH_ComponentParamServer..::..RegisterOutputParam Method (IGH_Param) boolean but I couldn'nt work out how to pass it a class that implements the IGH_Param interface

Does anyone how some sample code that you can share?

Any insights are much appreciated, thank you! 

Views: 1071

Replies to This Discussion

Adding input/output parameters on a GHPython component from within the script is possible, however I never got around to looking into it properly (although it would actually be rather useful in my current dev workflow). Perhaps Djordje has since solved it, let's see if he pops up :)

Hi Anders,

Thanks for your reply,

It is indeed possible I found a solution in the code seen here: http://www.grasshopper3d.com/forum/attachment/download?id=2985220%3...

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