Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4159

Help Close-Open panel python Script

$
0
0

Hi,
@Helvetosaur provided this great little python script which covers one click close and open of most of the panels.
Panel_OpenClose.txt (2.7 KB)

I’m trying to extend this script to include the “named cplanes” panel but I can’t figure out what Rhino.UI etc. its id is from. I’m new to python and I see the area he got the panelIds from but in that area there is no named cplanes id. He’s doing this list and I want to add the named cplanes ID to it. I see he got the GH panel in a different way.
Thanks for any help I’ve attached the full script above as well.

def PanelList():
a=Rhino.UI.PanelIds.ContextHelp #0
b=Rhino.UI.PanelIds.Display #1
c=Rhino.UI.PanelIds.Environment #2
d=Rhino.UI.PanelIds.GroundPlane #3
e=Rhino.UI.PanelIds.Layers #4
f=Rhino.UI.PanelIds.Libraries #5
g=Rhino.UI.PanelIds.LightManager #6
h=Rhino.UI.PanelIds.Materials #7
i=Rhino.UI.PanelIds.Notes #8
j=Rhino.UI.PanelIds.ObjectProperties #9
k=Rhino.UI.PanelIds.Rendering #10
l=Rhino.UI.PanelIds.Sun #11
m=Rhino.UI.PanelIds.Texture #12
#Grasshopper RCP ID
n=rs.coerceguid(“b45a29b1-4343-4035-989e-044e8580d9cf”) #13
return[a,b,c,d,e,f,g,h,i,j,k,l,m,n]

RM

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4159