Re: [Tutor] MEL to Python Translation of array index in conditional statement

2016-11-10 Thread Alan Gauld via Tutor
On 10/11/16 13:08, Brian Schindler wrote: > I'm trying to convert the following code from MEL (Maya Embedded Language) > to Python You'll probably get better support fromthe Maya community than here since most of us don;'t know anything about Maya's language. > and having trouble with syntax er

Re: [Tutor] MEL to Python Translation of array index in conditional statement

2016-11-10 Thread Steven D'Aprano
On Thu, Nov 10, 2016 at 08:08:14AM -0500, Brian Schindler wrote: > 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? Only if you help us to help you. I don't know ME

Re: [Tutor] MEL to Python Translation of array index in conditional statement

2016-11-10 Thread Peter Otten
Brian Schindler wrote: > 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. What did you try? > Could you help me out? > > float $pos[3] = `xform -q -rp $obj`; > if ($pos[0] != 0 || $p