ECToo / pymel

Automatically exported from code.google.com/p/pymel
0 stars 0 forks source link

mel2py errors with .cv[0:15], and doesn't report any errors if one proc succeeds #194

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If you try to translate a mel file that contains:

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

global proc proc2 (float $foo)
{
    $bar = $foo + 2;
}

There will be two issues:

One, it will not report any errors, even though it fails to translate 
myProc.

Two, it fails to translate myProc, due to a problem with the ':' character.  
(To see this, try translating the file when the only proc in there is 
myProc.)  It will translate successfully if the object string is quoted, 
ie:

move -r -os -wd 0 0 $scale "nurbsSphere1.cv[0:15]";

...will succeed.

Original issue reported on code.google.com by elron...@gmail.com on 26 May 2010 at 10:14

GoogleCodeExporter commented 9 years ago

Original comment by elron...@gmail.com on 20 Jan 2011 at 11:57