Grasshopper

algorithmic modeling for Rhino

 in c# , if you have your own custom object and you wanted to register it as input param for another custom object so you can access all of theproperties in the new component, how would you do this. is it

inputManager.Register_GenericParam(); or inputManager.RegisterParam()


so for example i have custom node Foo, and Foo has 1 output registered as a genericParam ,  FooCustomClass,  FooCustomClass contains 2 properties A, B and you can access them as (int)FooCustomClass.A and (double) FooCustomClass.B

and i also have another custom component Bar.

in Bar i want to register Foo as an input and be able to access (int)FooCustomClass.A and (double) FooCustomClass.B for use in Bar. 

i hope this makes sense



Views: 186

Replies to This Discussion

never mind i figured it out!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service