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.
Hi @kev.r
That was brilliant. I didn’t think of looking in the command history for the panel ids.
I did add this bit of code #keep the panels in the order you want the to appear
return[pl[14],pl[2],pl[5],pl[11],pl[10],pl[7],pl[9],pl[4]]
The last panel appears first when the panels are docked, i.e. pl[4] .
I’m running it off an icon.
That’s written in the text file, sorry I didn’t delete that. This way one can just copy the text file to an icon and run it.
Thanks for your help that worked perfectly and great suggestion to find the ids in the command history.
RM