Grasshopper

algorithmic modeling for Rhino

Hi,

I have a component that (also) has a Guid input parameter and a Geometry input parameter, either one of them must be used.

But if I leave one of them not linked, a warning pops up and stops the calculation.

Is there a way to set these input parameters as optional ?

Thanks

Views: 1767

Replies to This Discussion

Inside RegisterInputParams

pManager[0].Optional = true;

You can set the Optional flag of any input parameter to true or false whenever you want, as long as it's not during a solution.

--

David Rutten

david@mcneel.com

Tirol, Austria

Thank you, David !

Cheers

emilio

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