Question (MEL)

19 views
Skip to first unread message

Christopher.

unread,
Oct 14, 2015, 2:20:15 PM10/14/15
to Python Programming for Autodesk Maya
rotate -r -rotateY 300 0 0 ($bballArray[1]);

How come the above code works, shouldn't 300 represent (X) and the next numeric value represent (Y) ? It appears MEL does the following, if you want to rotateY then the first numeric value is Y !

Ravi Jagannadhan

unread,
Oct 14, 2015, 2:22:42 PM10/14/15
to python_in...@googlegroups.com
It might just be how the parser for that command works.

On Wed, Oct 14, 2015 at 11:20 AM, Christopher. <crestchr...@gmail.com> wrote:
rotate -r -rotateY 300 0 0 ($bballArray[1]);

How come the above code works, shouldn't 300 represent (X) and the next numeric value represent (Y) ? It appears MEL does the following, if you want to rotateY then the first numeric value is Y !

--
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/01f6487d-5e08-451e-afe6-d064a685c573%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Where we have strong emotions, we're liable to fool ourselves - Carl Sagan

damon shelton

unread,
Oct 14, 2015, 2:32:35 PM10/14/15
to python_in...@googlegroups.com
the 3 floats are required to be there. but which one it uses changes bases on your flag, while it doesn't make sense, it is just how the command was set up. I would suggest dropping the rotateY flag then the float order works as expected. 

On Wed, Oct 14, 2015 at 11:20 AM, Christopher. <crestchr...@gmail.com> wrote:
rotate -r -rotateY 300 0 0 ($bballArray[1]);

How come the above code works, shouldn't 300 represent (X) and the next numeric value represent (Y) ? It appears MEL does the following, if you want to rotateY then the first numeric value is Y !

--

Christopher.

unread,
Oct 14, 2015, 2:50:58 PM10/14/15
to Python Programming for Autodesk Maya
Odd !

The first value when you are specific as in; rotateY, the first value 0 0 0 is only what MEL reads, the other values are basically nullified.  Alteast I know :) I look forward to finding hiccups in Python soon, yes, no, :)
On Wednesday, October 14, 2015 at 2:32:35 PM UTC-4, damonshelton wrote:
the 3 floats are required to be there. but which one it uses changes bases on your flag, while it doesn't make sense, it is just how the command was set up. I would suggest dropping the rotateY flag then the float order works as expected. 
On Wed, Oct 14, 2015 at 11:20 AM, Christopher. <crestchr...@gmail.com> wrote:
rotate -r -rotateY 300 0 0 ($bballArray[1]);

How come the above code works, shouldn't 300 represent (X) and the next numeric value represent (Y) ? It appears MEL does the following, if you want to rotateY then the first numeric value is Y !

--
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_maya+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages