Grasshopper

algorithmic modeling for Rhino

Disable Preview for certain outputs of the VB/C# script component

Hi All,

does someone know if it`s possible to disable preview for certain outputs of the ordinary VB/C# script components, like its possible for custom one by "pManager.HideParameter(index)".

Im was messing around with this pointer: private IGH_ActiveObject owner; But no way to find the solution. So i hope someone knows the trick.

Best

FF

Views: 979

Replies to This Discussion

You need to cast the owner object (IGH_ActiveObject) to an IGH_Component. Then you can access the input and output parameters. Then you'll still need to cast the parameter in question to an IGH_PreviewObject so you can access the Hidden property.

I use the runCount member in the attached file to reduce the number of times this code runs.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Attachments:

Thanks David  i got it to work. I knew there is a way to do it. Have to take a closer look to the GH SDK.

Thx and cheers

ff

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service