View Full Version : Mel Scripting

01 January 2011, 03:36 AM
still new at this but how would I go about storing gauss into a variable. I tried doing this

$Random = "gauss (1,5)"

print $Random

but it just actually prints it and not the resulting value

01 January 2011, 04:52 AM
remove the quotes

$Random = gauss (1,5);
print $Random

01 January 2011, 05:04 AM
ahh!!! so simple thx much

01 January 2011, 06:41 AM
I think you should read some book or watch some dvd before asking questions.

It is obvious that you don't know fundamental things like data types (strings,floats,ints ,etc...)

01 January 2011, 10:03 AM
yeah, double-quotes " define a literal string, but like Ginodauri said, you should at least read the introduction to MEL documents in Maya, this kind of question (and your other I answered) are below even a basic remedial level... (no offence! ;) :) )

Maya > F1 > User Guide > General > MEL and Expressions > ...


01 January 2011, 04:57 PM
ok np thx for the input

CGTalk Moderation
01 January 2011, 04:57 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.