algorithmic modeling for Rhino
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
Tags:
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
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
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
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by