FORUMS: list search recent posts

simple expression not working

COW Forums : Autodesk Maya

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
jeremy gates
simple expression not working
on Jan 17, 2012 at 8:12:01 pm

can someone please tell me why this simple code won't work in the script editor:

pCube1.rotateX = nurbsSphere1.rotateX;

I keep getting snytax error message.

Besides the obvious of the objects names, capitalization, semi colon ending, and making sure that the script editor is in Mel I don't see anything else.


Return to posts index

Steve Sayer
Re: simple expression not working
on Jan 19, 2012 at 7:19:11 pm

In your Maya help files, look for the page titled "Differences between expression and MEL syntax." Find it in "User Guide > Scripting > MEL and Expressions > Syntax".

Basically you're trying to use an expression in your script editor, which doesn't work. You'll have to use getAttr and setAttr commands instead for a one-time implementation like this.

Hope that helps.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]