PDA

View Full Version : Expression documentation inconsistencies


supersteve3d
09-28-2006, 08:41 AM
Hi all,

Further to my thread below, I wonder if anyone can explain why there are differences between what is documented about expressions in the docs and what actually works. :)

In the docs found under the following sub category..

using maya -> general -> MEL and Expressions -> Syntax -> Differences between expression and MEL syntax

I see the following..
"In an expression, you can directly access object attributes where as in MEL you must use the getAttr, setAttr, getParticleAttr, or setParticleAttr commands."

Does this mean that I have the choice of either in expressions but in MEL I must use setAttr as opposed to directly accessing. I ask because from my tests, setAttr works fine in expressions.

Futhermore..

"Comments
You cannot use multi-line /* */ comments in expressions. You can use
// comments."

Multi-line comments seem to work for me. What gives?

Thanks.

CGTalk Moderation
09-28-2006, 08:41 AM
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.