PDA

View Full Version : Error: Invalid use of Maya object


daddysauce
05-07-2007, 04:00 PM
Hello,
````Doing a simple mel script. Have a sphere named 'Ball'. put

Ball.tx = 5*sin(time); into script editor and run

// Error: Invalid use of Maya object "Cube.tx". //


tried with other simple scripts as well.


Any ideas? thanks people

//////// SORTED!
oops just realised should go in expression not script editor.

GiantG
05-07-2007, 06:14 PM
In MEL you have to set the Attribute.

setAttr Ball.tx (5*sin(time));


cheerz

y-art
05-07-2007, 11:18 PM
""oops just realised should go in expression not script editor.""
Exactly

CGTalk Moderation
05-07-2007, 11:18 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.