SimplyMaya Forums

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


SM Forums / Maya Questions / Programming / Mel Script

Programming MEL Scripts, Expressions & Programming Related Topics

Join the conversation. Reply to post
 
Thread Tools
29-01-2011, 03:56 AM   #1
oiver55
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
  Reply with quote
29-01-2011, 04:00 AM   #2
NextDesign
Technical Director
 
NextDesign's Avatar
 
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.
  Reply with quote
29-01-2011, 04:24 AM   #3
oiver55
Registered User
 
Join Date: Jan 2011
Posts: 18
http://img255.imageshack.us/img255/4...0128232209.png



Thx for really quick response but yeah I did as you said and this happens
  Reply with quote
29-01-2011, 05:03 AM   #4
oiver55
Registered User
 
Join Date: Jan 2011
Posts: 18
oh ok so i took out the quotes and now it works
  Reply with quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
MEL Script help (Beginner) KoadRilL Programming 3 04-05-2015 08:32 PM
changing the "Quick help" window size in the maya 2012 script editor. Jouri Programming 3 27-11-2011 06:15 AM
city mel script omegaend Programming 3 11-04-2011 07:41 AM
looking for a mel script on UV mapping junkyBob Maya Basics & Newbie Lounge 1 14-11-2005 03:21 AM
Holding C++ variable in MEL script yaki Programming 5 29-04-2004 03:53 PM