[Tutor] MEL to Python Translation of array index in conditional statement
Brian Schindler
bschindl at scad.edu
Thu Nov 10 08:08:14 EST 2016
I'm trying to convert the following code from MEL (Maya Embedded Language) to Python and having trouble with syntax errors in the conditional statement. Could you help me out?
float $pos[3] = `xform -q -rp $obj`;
if ($pos[0] != 0 || $pos[1] != 0 || $pos[2] != 0)
Brian Schindler
Professor of Animation
School of Digital Media
Savannah College of Art and Design®
Office: 912.525.8528 Fax: 912.525.8597
bschindl at scad.edu
SCAD: The University for Creative Careers®
NOTICE: This e-mail message and all attachments transmitted with
it may contain legally privileged and confidential information
intended solely for the use of the addressee. If the reader of
this message is not the intended recipient, you are hereby
notified that any reading, dissemination, distribution, copying,
or other use of this message or its attachments is strictly
prohibited. If you have received this message in error, please
notify the sender immediately by telephone or by electronic mail
and then delete this message and all copies and backups thereof.
Thank you.
More information about the Tutor
mailing list