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
--
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 [email protected].
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.