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, 02:56 AM   #1
oiver55
Registered User
 
Join Date: Jan 2011
Posts: 18
Thanks: 0
Thanked 2 Times in 2 Posts
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, 03:00 AM   #2
NextDesign
Technical Director
 
NextDesign's Avatar
 
Join Date: Feb 2004
Posts: 2,988
Thanks: 33
Thanked 532 Times in 471 Posts
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, 03:24 AM   #3
oiver55
Registered User
 
Join Date: Jan 2011
Posts: 18
Thanks: 0
Thanked 2 Times in 2 Posts
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, 04:03 AM   #4
oiver55
Registered User
 
Join Date: Jan 2011
Posts: 18
Thanks: 0
Thanked 2 Times in 2 Posts
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 01:17 AM
One attr key script ColdWave Mel Scripts & Programming 2 06-01-2011 10:12 PM
MEL headache! happymat27 Members Lounge 5 05-12-2010 08:43 AM
MEL headache!! happymat27 Mel Scripts & Programming 1 03-12-2010 03:41 PM

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.