Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Programming (https://simplymaya.com/forum/forumdisplay.php?f=32)
-   -   Mel Script (https://simplymaya.com/forum/showthread.php?t=35026)

oiver55 29-01-2011 03:56 AM

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

NextDesign 29-01-2011 04:00 AM

Hi oiver55,

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

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

print $Random;

oiver55 29-01-2011 04:24 AM

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



Thx for really quick response but yeah I did as you said and this happens

oiver55 29-01-2011 05:03 AM

oh ok so i took out the quotes and now it works


All times are GMT. The time now is 05:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018