Hi there,
Does anyone know how to dock a panel from a Python component in Grasshopper? I want to dock JUST the Remote Control Panel in Rhino. Like this:
I managed to open just the Remote Control Panel, but it opens as a floating window and I want it to be docked:
This is the code I have so far:
import rhinoscriptsyntax as rs
import scriptcontext as sc
import Rhino, System
import Grasshopper as ghif rcp:
panels = Rhino.UI.Panels.GetOpenPanelIds()for panel in panels: Rhino.UI.Panels.ClosePanel(panel) gh.Instances.ShowRemotePanel() rcpid = Rhino.UI.Panels.GetOpenPanelIds() print "------ RCP ID:" print rcpid docks = Rhino.UI.Panels.PanelDockBar(rcpid[0]) print "------ DOCK ID:" print docks for rcp in rcpid: Rhino.UI.Panels.ClosePanel(rcp) Rhino.UI.Panels.OpenPanel(docks,rcpid[0],True)
TIA!