I can't take full responsibility for that code, only about less then 5%, 
that screw up being the import maya.mel as multiuvexport, I knew it was a 
screw up :) The rest of the code is from elsewhere !

On Wednesday, June 3, 2015 at 12:50:39 PM UTC-4, Marcus Ottosson wrote:
>
> Don’t mean to be a critic, but man, there are so many things wrong with 
> that piece of code. :D
>
> import maya.mel as multiuvexport
>
> Whyyyy?
>
> multiuvexport.eval (
> ...
> eval $UVCmd;
>
> Eval within an eval, whyyyy?
>
> -xr 4096 -yr 4096
>
> Hardcoding values, concatenating strings, whyyyy?
>
> How are you coming up with these things?
> ​
>
> On 3 June 2015 at 16:58, Christopher. <[email protected] <javascript:>
> > wrote:
>
>> import maya.mel as multiuvexport
>> multiuvexport.eval (
>>     "{
>> int $uMin=-1;
>> int $uMax=1;
>> int $vMin=-1;
>> int $vMax=1;
>>
>> int $i,$j;
>> string $UVCmd;
>>
>>
>> for ($i = $uMin; $i < $uMax; $i++)
>> {
>> for ($j = $vMin; $j < $vMax; $j++)
>> {
>> $UVCmd = "uvSnapshot -o -aa -uMin "+$i+" -uMax "+($i+1)+" -vMin "+$j+" 
>> -vMax "+($j+1)+ "-n \"c:\5\uvImage_u"+($i+1)+"_v"+($j+1)+".jpg\" -xr 4096 
>> -yr 4096 -ff jpg;" ;
>> eval $UVCmd;
>> }
>>
>> }
>>
>> }"
>>
>> )
>>
>> On Tuesday, June 2, 2015 at 3:53:41 PM UTC-4, Justin Israel wrote:
>>>
>>> Please paste an example of your actual code. A big pink long probably 
>>> means you have a python syntax error. The Mel code should be in an actual 
>>> string so it should syntax highlight like a string. 
>>>  
>>> On Wed, 3 Jun 2015 1:36 AM Christopher. <[email protected]> wrote:
>>>
>>>> The beginning and end of the MEL string has a nice long pink line in 
>>>> Sublime, I assume this is because Sublime doesn't have syntax highlighting 
>>>> for MEL ?
>>>>
>>>> The MEL code doesn't execute, I get a SyntaxError on line 1: EOL while 
>>>> scanning string literal ?
>>>>
>>>> On Monday, June 1, 2015 at 10:53:28 PM UTC-4, Justin Israel wrote:
>>>>
>>>>>
>>>>>
>>>>> On Tue, Jun 2, 2015 at 2:07 PM Christopher. <[email protected]> 
>>>>> wrote:
>>>>>
>>>>>> Alright;
>>>>>> import maya.mel as *whatever name*
>>>>>> *whatever name*.eval (
>>>>>> <MEL script>
>>>>>> )
>>>>>> Correct ?
>>>>>>
>>>>>
>>>>> Yep. Where <MEL script> is a string.
>>>>>  
>>>>>
>>>>>>
>>>>>> Converters are fine for some, I rather understand the guts :) 
>>>>>>
>>>>>>
>>>>>> On Sunday, May 31, 2015 at 3:34:38 PM UTC-4, Christopher. wrote:
>>>>>>>
>>>>>>> Hi, I have a script that uses the def() syntax, the problem is the 
>>>>>>> original code is MEL, using the following syntax is not working ?
>>>>>>>
>>>>>>> def acme()
>>>>>>> [MEL code]
>>>>>>> acme()
>>>>>>>
>>>>>>>
>>>>>>>  
>>>>>>>
>>>>>>>
>>>>>>>  -- 
>>>>>> 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/e4cafeca-cf47-4477-85be-4216a8beca6e%40googlegroups.com
>>>>>>  
>>>>>> <https://groups.google.com/d/msgid/python_inside_maya/e4cafeca-cf47-4477-85be-4216a8beca6e%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>  -- 
>>>> 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/57ff7082-05fb-4a49-9a65-57a25ea97041%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/python_inside_maya/57ff7082-05fb-4a49-9a65-57a25ea97041%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>  -- 
>> 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] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/python_inside_maya/e2fe1755-9028-49a8-97f3-c141f7e5404e%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/python_inside_maya/e2fe1755-9028-49a8-97f3-c141f7e5404e%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> *Marcus Ottosson*
> [email protected] <javascript:>
>  

-- 
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/6ca9f9d2-8bb6-4a9f-ad42-5faddf67188e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to