algorithmic modeling for Rhino
Im wondering if its possible to design a class in one component and then link that component to another one, and in the second one creating oh lets say three new instances of that object.
basically, do i always have to have the source code for a custom class in the component thats creating instances of the class?
M
Tags:
Hi Mario,
not really. The script components are each compiled into their own little assembly and they do not have references to each other.
It is possible however to use Reflection to call methods on class instances you are not familiar with (and C# now has the dynamic keyword). This may get you going.
In the long term, I'd like to make it easier to share code between script components, but I don't know yet what approach I'll take and when this will happen.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by