Community
Maya Animation and Rigging
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya animation topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HotKey for hiding Joint preview

8 REPLIES 8
SOLVED
Reply
Message 1 of 9
gautham.chandran47
4414 Views, 8 Replies

HotKey for hiding Joint preview

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

8 REPLIES 8
Message 2 of 9
mspeer
in reply to: gautham.chandran47

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;
Message 3 of 9
gautham.chandran47
in reply to: mspeer

Thank you.



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

Message 4 of 9
ajzec
in reply to: mspeer

How to do it on one hotkey?

Message 5 of 9
ZigaPokorn3479
in reply to: ajzec

i have this command bound to a hotkey

dR_DoCmd("viewJointsTGL")

Message 6 of 9
ajzec
in reply to: ZigaPokorn3479

Thank you!

Message 7 of 9

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.

Message 8 of 9

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

Message 9 of 9

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

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

Post to forums  

Autodesk Design & Make Report