Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding
Announcements
We are currently migrating data within this board to improve the community. During this process, posting, replying, editing and other features are temporarily disabled. We sincerely apologize for any inconvenience caused and appreciate your understanding. Thank you for your patience and support.

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

cristianomenger
Participant Participant
848 Views
3 Replies
Message 1 of 4

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

cristianomenger
Participant
Participant

Hi!

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 🙂

Reply
Reply
0 Likes
Accepted solutions (1)
849 Views
3 Replies
Replies (3)
Message 2 of 4

Abdulla-Qaladzay
Collaborator
Collaborator
Accepted solution

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! 🤍 🙂

Reply
Reply
Message 3 of 4

Christoph_Schaedl
Mentor
Mentor

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.

----------------------------------------------------------------
https://linktr.ee/cg_oglu
Reply
Reply
0 Likes
Message 4 of 4

cristianomenger
Participant
Participant

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

Reply
Reply
0 Likes