algorithmic modeling for Rhino
Hi,
In a custom component I override the DrawViewportWires method and everything works pretty good.
public override void DrawViewportWires(IGH_PreviewArgs args)
{
base.DrawViewportWires(args);
if (Hidden) { return; }
if (Locked) { return; }
....
}
...
If all my input parameter are set the code executes and the display modification are working well. If I hide or lock the component, the display modification disappears - great...
But if I remove one of the input parameter, the display modification are still display. I am looking for a way to refresh the display of the component when input parameter is removed/changed.
thanks
Tags:
Call ExpirePreview on the component instead of ExpireSolution if you only want the preview to update but not the computed data.
--
David Rutten
david@mcneel.com
Tirol, Austria
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
© 2025 Created by Scott Davidson.
Powered by