Maya Forum
Welcome to Autodeskโ€™s Maya Forums. Share your knowledge, ask questions, and explore popular Maya topics.
Showing results forย 
Showย ย onlyย  | Search instead forย 
Did you mean:ย 

Switch from the current view in the panel to the hypershade shortcut?

Message 1 of 4
477 Views, 3 Replies

Switch from the current view in the panel to the hypershade shortcut?


Is there a way through a shortcut or script that it is possible to configure a shortcut to switch from the current view in the panel to the hypershade? So you don't have to go to the Panels menu and then go to Hypershade.

Thank you ๐Ÿ™‚

Labels (1)
Message 2 of 4

Hi @cristianomenger 

-This script will toggle between  perspective-panel-"modelPanel14" and  hyperShade -"hyperShadePanel1"

-create a custom hotkey for this script

$current = `getPanel -underPointer`; //to donot distorb if you are in another panel exept for the viewPor you want to toggle

if($current == "modelPanel4"){
scriptedPanel -e -rp modelPanel4 hyperShadePanel1; //to make sure the model panel of hypershade created and assembuled
panel -e -replacePanel modelPanel4 hyperShadePanel1; //then toggle viewPort to hyperShade
panel -e -replacePanel hyperShadePanel1 modelPanel4; //toggle hyperShade to viewPort 

you can change which panel you want to change by replacing the name of the panels

to get the name of a panel

-open the panel 

-put the cursor on it 

-then run this single line in the mel command line

getPanel -underPointer

open the script editor to see the name


I'm using this to toggle between perspectiveView and nodeEditor


I hope that will be helpful! ๐Ÿค ๐Ÿ™‚

Message 3 of 4

Just in case you didnt know.

The Hotbox (Spacebar) does have region menues.


If you click in the south of the Hotbox you can switch to Hypershade. Clicking Spacebar again will bring you back.

Now Spacebar is a toggle for Perspective and Hypershade.

Message 4 of 4

Thank you so much, this is exactly i was looking for. perfect!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators

Autodesk Design & Make Report