LumaPictures / pymel

Python in Maya Done Right
Other
498 stars 132 forks source link

mel2py namespacing for certain commands (ie, move) broken #230

Open pmolodo opened 9 years ago

pmolodo commented 9 years ago

From elron...@gmail.com on May 26, 2010 15:26:28

given a mel file which contains:

global proc myProc (float $scale) { move -r -os -wd 0 0 $scale "nurbsSphere1.cv[0:15]"; }

...if you run mel2py with --pymelNamespace=pm, you get back:

def myProc(scale): pm.pm.cmds.move(0,0,scale,"nurbsSphere1.cv[0:15]", r=1,os=1,wd=1)

The pm.pm.cmds.move needs to be fixed...

Original issue: http://code.google.com/p/pymel/issues/detail?id=195

pmolodo commented 9 years ago

From elron...@gmail.com on June 14, 2010 15:59:32

Also:

print m2p.mel2pyStr('warning "foo";', pymelNamespace='pm')

gives

pm.pm.mel.warning("foo")

pmolodo commented 9 years ago

From elron...@gmail.com on January 20, 2011 15:51:56

Labels: Type-Defect

pmolodo commented 9 years ago

From elron...@gmail.com on January 23, 2011 23:31:23

Labels: Priority-Low