Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 29-01-2011, 03: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, 04:00 AM   #2
NextDesign
Technical Director
 
NextDesign's Avatar
 
Join Date: Feb 2004
Posts: 2,982
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, 04: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, 05: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
Reply


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

Thread Tools





A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.