algorithmic modeling for Rhino
Hi,
I have developed several plugin developer for Rhino but quite new to Grasshopper.
Grasshopper is a great tool, in the sense of visual programming from a traditional coder point of view. Congratulation to David's work !
Let me ask a question : I have made a custom scriptable component, it ouputs a large list (data type : List<GH_Point>), at the moment theses points are displayed in a preview fashion (red dots or crosses), I would like to disable the output preview.
Any knows how to proceed ?
Tags:
Hi Sebastian,
This might be a programming issue, which disqualifies me in the beginning.
But if it's not, then just select your component, mouse scroll button click, and select the icon with a head and binding over it's eyes.
That will affect the entire component, he wants to just hide a single output parameter. This cannot be done through the GUI, but it is possible in code.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
thanks Djordje, i missed that menu on components.
It is technically always possible to change the Hidden state of a parameter, but it does involve casting the output from IGH_Param to IGH_PreviewObject. The easiest approach is to use:
pManager.HideParameter(1);
inside the RegisterOutputParams() method. Obviously you need to call this method after you actually add the parameter at index 1 or whatever index you're looking to hide.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
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