Grasshopper

algorithmic modeling for Rhino

creating and sending an Object from one component to another?

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

Views: 246

Replies to This Discussion

ps. im working in C#

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

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service