Hi there,
when you create a GH_Panel in C# (var panel = new Grasshopper.Kernel.Special.GH_Panel();
), how can I control the size of it on the GH canvas?
Thanks!
Hi,
That’s a matter of defining the Pivot
and Bounds
properties of the Attributes
of the Panel.
Done here :
1 Like
sweet, thanks a lot, works perfectly!
Explicitly, this is the line to resize the panel in python:
panel.Attributes.Bounds = sd.Rectangle(0, 0, 100, 50)
you might need to
import System.Drawing as sd