Hello,
Is it possible to make a command in order to display the remote pannel (Rhino pannel nammed Grasshopper) ?
There is almost a command for every pannel, but I didn’t find any way to display this one, is there any ?
Thanks,
Gaspard
Hello,
Is it possible to make a command in order to display the remote pannel (Rhino pannel nammed Grasshopper) ?
There is almost a command for every pannel, but I didn’t find any way to display this one, is there any ?
Thanks,
Gaspard
from Rhino.UI import Panels
from System import Guid
Panels.OpenPanel(Guid('b45a29b1-4343-4035-989e-044e8580d9cf'))
GhRemotePanel.py (116 Bytes)
And to to get the pannel ids list:
from Rhino.UI import Panels
from System import Guid
print(Panels.GetOpenPanelIds())
See more here:
https://developer.rhino3d.com/api/RhinoCommon/html/T_Rhino_UI_Panels.htm
Hi Mahdiyar
Thanks for your solution. It really works.
Do you know, or someone else, if there is any chance that this Guid may be changed in the future?
You are right @AndersDeleuran !
I had a confusion… If the RemoteControlPanel was active/visible, but it was not current tab, I could not get it to be the current tab. But the mistake was mine:
if (Grasshopper.Instances.IsRemotePanelVisible == False):
Grasshopper.Instances.ShowRemotePanel()
The IsRemotePanelVisible returned True, although it was not the active (front) panel, and the ShowRemotePanel() was not called.
So I used the code of @Mahdiyar:
Panels.OpenPanel(Guid(‘b45a29b1-4343-4035-989e-044e8580d9cf’)) that acivates
And I wondered if hardcoding the GUID was not the best practice for future mantainance.
But with your hint, I understand now that the panel will be shown and set to be the current tab.
Thanks.