Hello!
I’ve recently lost all my maya preferences and custom hot keys, so I decided to make a script that automatically creates and assigns these beauties.
Normal standard hot keys are no problem, but I haven’t found how you can add custom scripts to this hot key environment.
I found the “nameCommand” script, and I got it to work just fine.
cmds.nameCommand(“toggle_CRV_vis”, ann= “toggle_CRV_vis”, c= ‘python(“cmds.modelEditor( str(cmds.getPanel(wf=1)), e=1, nurbsCurves= not (cmds.modelEditor( str(cmds.getPanel(wf=1)) , q=1 ,nurbsCurves=1)))”)’, d=1)
cmds.hotkey(k=“a”, alt=1, name=“toggle_CRV_vis”)
But I cannot find it in the hotkey editor afterwards, and as soon as I shut down maya, it’s gone. So I presume this is supposed to be something you activate every time you open up maya. so not what I’m looking for…
Anybody knows how to script this magic?
thanks for the help!