SimplyMaya Forums

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

Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 14-04-2003, 09: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, 01:36 AM   #2
David
SM Site Programmer
 
David's Avatar
 
Join Date: Apr 2002
Posts: 3,028
Thanks: 49
Thanked 389 Times in 304 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, 02: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, 02:23 AM   #4
David
SM Site Programmer
 
David's Avatar
 
Join Date: Apr 2002
Posts: 3,028
Thanks: 49
Thanked 389 Times in 304 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, 03: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
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.