Maya Training

Creating characters In Maya and Zbrush

Maya Training

Creating character renders in Maya 2017 and Arnold

Maya Training

Spach-Alspaugh House the complete courseware
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 14-04-2003, 10:43 PM   #1
Lespaul84
Registered User
 
Join Date: Jun 2002
Location: Scotland
Posts: 129
Thanks: 0
Thanked 0 Times in 0 Posts
Default expression help

im getting a syntax error with this code and cant find the problem, can someone see if they can spot the error.

vector $pos = particleExplosionShape.position;
if (0.05*$pos.z > 1.0)
particleExplosionShape.radiusPP = 0.05*$pos.z;
float $DTOR = 0.01745
if ((particleExplosionShape.lifespanPP ˝ particleExplosionShape.age ) < 1.5)
{
float $theta = 5.0*$DTOR;
vector $vel = particleExplosionShape.velocity;
vector $tmp = <<$vel.x,$vel.y,$vel.z-0.001>>;
vector $axis = cross($vel,$tmp);
vector $new = rot($vel,$axis,$theta);
particleExplosionShape.velocity = $new;
}
Lespaul84 is offline   Reply With Quote
Old 15-04-2003, 02:36 AM   #2
David
SM Site Programmer
 
David's Avatar
 
Join Date: Apr 2002
Posts: 2,996
Thanks: 49
Thanked 386 Times in 301 Posts
Default

Never having used mel b4 this is a wild stab in the dark but there is no { } block defined after your first if statement?

should it read

if (0.05*$pos.z > 1.0)
{
particleExplosionShape.radiusPP = 0.05*$pos.z;
float $DTOR = 0.01745
}
__________________
Worst Response To A Crisis:
From a readers' Q and A column in TV GUIDE: "If we get involved in a nuclear war, would the electromagnetic pulses from exploding bombs damage my videotapes?"
David is offline   Reply With Quote
Old 15-04-2003, 03:02 AM   #3
dannyngan
Registered User
 
dannyngan's Avatar
 
Join Date: Dec 2002
Location: Seattle, WA
Posts: 1,154
Thanks: 0
Thanked 1 Time in 1 Post
Default

You're missing a semicolon here:

float $DTOR = 0.01745; // semicolon here
__________________
Danny Ngan
Animator | Amaze Entertainment
my website | my blog | my job
dannyngan is offline   Reply With Quote
Old 15-04-2003, 03:23 AM   #4
David
SM Site Programmer
 
David's Avatar
 
Join Date: Apr 2002
Posts: 2,996
Thanks: 49
Thanked 386 Times in 301 Posts
Default

Ahhh should have seen that.

David
__________________
Worst Response To A Crisis:
From a readers' Q and A column in TV GUIDE: "If we get involved in a nuclear war, would the electromagnetic pulses from exploding bombs damage my videotapes?"
David is offline   Reply With Quote
Old 15-04-2003, 04:39 AM   #5
twisteddragon33
Registered User
 
twisteddragon33's Avatar
 
Join Date: Apr 2003
Location: New York, USA
Posts: 1,945
Thanks: 0
Thanked 45 Times in 45 Posts
Default

whats sad is i figured it out and dont even know what your doing

of course i know a bit of programming...
__________________
________________________
AIM: SublimeDragon33
Catch me if i'm on. Always up for a chat.
e-mail: sublimedragon33@gmail.com
twisteddragon33 is offline   Reply With Quote

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-2017 SimplyMaya - vBulletin« Copyright © 2000-2017, Jelsoft Enterprises Ltd.