Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / MEL / MEL Scripting gauss into variable?
  RSS 2.0 ATOM  

MEL Scripting gauss into variable?
Rate this thread
 
51799
 
Permlink of this thread  
avatar
  • oiver55
  • Posted: 28 January 2011 03:34 PM
  • Total Posts: 6
  • Joined: 19 May 2010 12:39 AM

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



Replies: 1
/img/forum/dark/default_avatar.png

Not a mel expert but I believe putting things in quotes identifies them as a string, try removing the quotes.

Author: landr

Replied: 28 January 2011 03:41 PM  
avatar
  • oiver55
  • Posted: 28 January 2011 03:46 PM

appreciate the help but yeah tried that didnt work out :<



Replies: 1
/img/forum/dark/default_avatar.png

im sorry never mind I restarted the program and now it works :>

Author: oiver55

Replied: 28 January 2011 04:00 PM  
avatar
  • landr
  • Posted: 28 January 2011 04:22 PM

oh and you may need to end your statement with semi colons



Replies: 0