Python Maya 2018 hotkeys Linux and Windows issue

57 views
Skip to first unread message

ninu

unread,
Nov 3, 2018, 2:38:32 PM11/3/18
to Python Programming for Autodesk Maya
Hi there,

I am having a issue. I created a hotkey with Python in maya 2018. It works great on Linux but on windows it doesn't run or gives any error. Can someone think of a reason why Maya would behave differently with its native cmds.




Here is the sample code. works fine on Linux but not on windows.



import maya.cmds as cmds
cmds.nameCommand( 'hotkeyTest', ann='Hotkey Test', c='python("cmds.polyCube()")')
cmds.hotkey( keyShortcut='1', altModifier=True, name='hotkeyTest')





Thanks

Tim Fowler

unread,
Nov 4, 2018, 10:35:43 AM11/4/18
to python_in...@googlegroups.com
Hmm, yeah that looks like a bug.  I gave it a shot and was able to reproduce it at first, but I eventually got it working.  I think it has something to do with changes for the new hotkey editor, like maybe if you set up a new hotkey set then it'll start working?  That could explain the difference between your Linux and Windows Maya's...maybe you had some hotkey's set up a certain way already on Linux but not Windows and that's why it works there?   

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/f1059f64-e9d4-4304-a06a-8e8e2d90795f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages