Introduction to Maya - Rendering in Arnold
This course will look at the fundamentals of rendering in Arnold. We'll go through the different light types available, cameras, shaders, Arnold's render settings and finally how to split an image into render passes (AOV's), before we then reassemble it i
# 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