Grasshopper

algorithmic modeling for Rhino

GH script output : disabling display (newbie issue)

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 ?

Views: 475

Replies to This Discussion

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

Ok.
Sorry for entanglement.

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

Thanks David for support, that was exactly the issue I tried to solve without hidding the entire component output !

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