I was trying to create python script 

from maya import cmds
if(cmds.window('window1',q=1,ex=1)):cmds.deleteUI('window1')
cmds.window('window1',t='test file',mb=1)
cmds.columnlayout(adj=1)
cmds.button(c='testMEL',l=test)
cmds.showWindow('window1')

def testMEL():
    mel.eval('source "/usr/people/vishal/test.mel"')

I want to call mel script from python so I used - mel.eval('source 
"/usr/people/vishal/test.mel"') this , when I run this single line command 
in python it works but when I add it to a button its not showing anything

-- 
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/4b9368ac-6534-4d97-a6c6-12ed5990feef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to