Hide Hypershade Panel or toggle

tjdrbrla
Advocate

Hide Hypershade Panel or toggle

tjdrbrla
Advocate
Advocate

I searched for commands to turn on and off Hypershade, and everyone uses commands to turn off windows through Delete Ui, and I want to know which commands to hide and turn on panels through the Collapse tab group. tab group. Do you know anyone? (I would appreciate it if you could tell me the commands in UV Editor.) I used Script Editor - Echo all Commands, but I didn't recognize the Collapse tab group command.

1.png

0 Likes
Reply
Accepted solutions (1)
744 Views
2 Replies
Replies (2)

loncy888
Enthusiast
Enthusiast
Accepted solution

Executing this code expands/collapses the hyperShade workspace control, note that this needs to be in maya2017 or later.

if (`workspaceControl -ex hyperShadePanel1Window` &&
	!`workspaceControl -q -fl hyperShadePanel1Window`) {
	int $collapse = `workspaceControl -q -clp hyperShadePanel1Window`;
	workspaceControl -e -clp (!$collapse) hyperShadePanel1Window;
}
loncy

tjdrbrla
Advocate
Advocate

Thank you!! I've been looking for it for a long time, but thanks to you, I solved the problem that I couldn't solve. Thank you so much!