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

HotKey for hiding Joint preview

gautham.chandran47
Advisor

HotKey for hiding Joint preview

gautham.chandran47
Advisor
Advisor

Its not much job but its annoying to evey time hide the joint visibility by going to show > and toggle joints.

I was wondering if there is any way to do this using hotkey or a custom script from the shelf .



Goutham Chandran
Cinematic Animator | Rockstar Games
Linkedin | Instagram | Facebook

0 Likes
Reply
Accepted solutions (1)
5,077 Views
8 Replies
Replies (8)

mspeer
Consultant
Consultant
Accepted solution

Hi!

 

Use "Echo all Commands" in Script Editor to see the right command and assign this to a hotkey with Hotkey Editor.

But the show command of the Viewport will only work for one specific window/Viewport.

 

You may better use (MEL):

 

hideShow -joints -hide;
hideShow -joints -show;
0 Likes

gautham.chandran47
Advisor
Advisor

Thank you.



Goutham Chandran
Cinematic Animator | Rockstar Games
Linkedin | Instagram | Facebook

0 Likes

ajzec
Explorer
Explorer

How to do it on one hotkey?

0 Likes

ZigaPokorn3479
Participant
Participant

i have this command bound to a hotkey

dR_DoCmd("viewJointsTGL")

ajzec
Explorer
Explorer

Thank you!

0 Likes

marshallNCN8W
Explorer
Explorer

Thanks for this. Any wonder why such a basic function is not easily accessible.
Curious what your solution would be to just toggle visibility for all kinematics?

Trying to keep the viewport window uncluttered is becoming more of a task these days.

Thank you again.

0 Likes

OGRigger
Observer
Observer
pan =cmds.getPanel(  type='modelPanel') #gets all panels
if (cmds.modelEditor( pan[-1], q=1, j=1)): # using Echo commands on u can find number of your panel
    cmds.modelEditor(pan[-1], e=1, j=0)
else:
    cmds.modelEditor(pan[-1],e=1, j=1)  

Here is python v if needed

0 Likes

lzachariasCKXEV
Community Visitor
Community Visitor

Alternatively to scripting methods, you can use the hotkey editor to search "View Joints TGL" and assign it to whatever input you want, personally use alt 3, since alt 1 toggles curves vis and alt 2 toggles geo vis. Remember to save a hotkey set so it is there next time you open maya