Panel with GhPython: Problem

Hello

The script don’t attach the panel to the output and when i plug it no data appears, How these problem solved?

panel test.gh (6.8 KB)

Problem solved, i use

panel.AddSource(self.Params.Output[0])

1 Like

How to remove path index and resize the panel ?

image


Solved using:

panel.Attributes.Bounds = System.Drawing.RectangleF(0,0,x,y)
panel.Attributes.ExpireLayout()
panel.Properties.DrawPaths = False

Hi
The script create a new panel and attached it to the output, when i modify the bounds the process repeated again and again
How to keep the first panel? or how to remove it and block the creation of new panel when edit the bounds (x,y)?

panel test2.gh (6.4 KB)


Problem solved by add all panels to a list and keep the first one (index 0) than modify its attributes