Grasshopper

algorithmic modeling for Rhino

Hey to all.

I'm fairly new into programming with the VB-Component in Grasshopper and I'm limited with my (poor) programming know-how. But I hope you can feel a little sympathy for me ;-).

Is it possible to search for components, which have no source connected on their inputs ?

Any Help would be greatl appreciated

Thx alex

Views: 431

Replies to This Discussion

Not directly, but it's certainly possible to iterate over all objects in a document and figure out which objects don't have inputs.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Attachments:

Thx David for the fast reply.

I understand the things you did. So all I have to do is to search for the objects which have a param.SourceCount > param.Sourcecount -1 for finding objects which have at least one "open" input ?

If you're specifically searching for components then the code becomes a bit easier. If you want to include in your search other types of objects as well (as I did in my example code) then you need to use the AppendToAttributeTree trick.

Searching for components with specific input topology might look like the attached.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Attachments:

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