Scripting component grasshopper disable all ouput previews

Hi,

I would like to display geometry though grasshopper C# component, but I would like to disable preview for all outputs.

Where is the method inside Component.Params.Output… to “Hide” output preview?

foreach(IGH_Param output in this.Component.Params.Output){
  if(output is Grasshopper.Kernel.IGH_PreviewObject){
    Grasshopper.Kernel.IGH_PreviewObject param = output as Grasshopper.Kernel.IGH_PreviewObject;
    param.Hidden = true;
  }
}
4 Likes

Thank you:)