Maya 2020 fundamentals - modelling the real world
Get halfway through a model and find it's an unworkable mess? Can't add edge loops where you need them? Can't subdivide a mesh properly? If any of this sounds familiar check this course out.
# 1 29-01-2011 , 03:56 AM
Registered User
Join Date: Jan 2011
Posts: 18

Mel Script

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

# 2 29-01-2011 , 04:00 AM
NextDesign's Avatar
Technical Director
Join Date: Feb 2004
Posts: 2,988
Hi oiver55,

You need to do this for Maya to evaluate the expression.

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

print $Random;


Imagination is more important than knowledge.
# 3 29-01-2011 , 04:24 AM
Registered User
Join Date: Jan 2011
Posts: 18

# 4 29-01-2011 , 05:03 AM
Registered User
Join Date: Jan 2011
Posts: 18
oh ok so i took out the quotes and now it works

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads