SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 29-01-2011, 03:56 AM   #1
oiver55
Registered User
 
Join Date: Jan 2011
Posts: 18
Default 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
oiver55 is offline   Reply With Quote
Old 29-01-2011, 04:00 AM   #2
NextDesign
Technical Director
 
NextDesign's Avatar
 
Join Date: Feb 2004
Posts: 2,988
Default

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.
NextDesign is offline   Reply With Quote
Old 29-01-2011, 04:24 AM   #3
oiver55
Registered User
 
Join Date: Jan 2011
Posts: 18
Default

http://img255.imageshack.us/img255/4...0128232209.png



Thx for really quick response but yeah I did as you said and this happens
oiver55 is offline   Reply With Quote
Old 29-01-2011, 05:03 AM   #4
oiver55
Registered User
 
Join Date: Jan 2011
Posts: 18
Default

oh ok so i took out the quotes and now it works
oiver55 is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free Friday Tutorial #1: MEL Scripts and Modeling, Making a Golf Ball with GeoSphere David Free Fridays 11 05-03-2011 02:17 AM
One attr key script ColdWave Mel Scripts & Programming 2 06-01-2011 11:12 PM
MEL headache! happymat27 Members Lounge 5 05-12-2010 09:43 AM
MEL headache!! happymat27 Mel Scripts & Programming 1 03-12-2010 04:41 PM