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
}else{
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! 🤍 🙂