mel.eval('runTimeCommand -annotation "Herrow" -category "User" -commandLanguage "python" -command ("from tools.anim import picker\nreload(picker)") customCmd;') -You could try:
"from tools.anim import picker;reload(picker)"
haggi
--
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/3207324d-fcee-408c-95e3-d94f39443b7b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
mel.eval('runTimeCommand -annotation "Herrow" -category "User" -commandLanguage "python" -command "from tools.anim import picker; reload(picker)" customCmd2;')
cmds.runTimeCommand("customCmd", annotation="Herrow", category="User", commandLanguage="python", command="from tools.anim import picker; reload(picker)")
complexString = '''some code that contains both "double quotes" and 'single quotes' all in one'''
complexString = '''some code that contains both "double quotes" and 'single quotes' and also %r'''
print complexString % complexString
--
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/a0888f13-6197-49ab-b594-9fb639bf356c%40googlegroups.com.
picker.control("mySel") mel.eval('''runTimeCommand -ann "Herrow" -cat "User" -cl "python" -c "from tools.anim import picker;reload(picker);picker('mySel')" customCmd;''')