Interested in integrating your 3D work with the real world? This might help
# 1 14-04-2003 , 09:43 PM

Registered User
Join Date: Jun 2002
Location: Scotland
Posts: 129

#### 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)
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;
}

# 2 15-04-2003 , 01:36 AM

SM Tea Boy
Join Date: Apr 2002
Location: Prague
Posts: 3,228
Never having used mel b4 this is a wild stab in the dark but there is no { } block defined after your first if statement?

if (0.05*\$pos.z > 1.0)
{
float \$DTOR = 0.01745
}

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?"

# 3 15-04-2003 , 02:02 AM

Registered User
Join Date: Dec 2002
Location: Seattle, WA
Posts: 1,154
You're missing a semicolon here:

float \$DTOR = 0.01745; // semicolon here

Danny Ngan
Animator | Amaze Entertainment
my website | my blog | my job

# 4 15-04-2003 , 02:23 AM

SM Tea Boy
Join Date: Apr 2002
Location: Prague
Posts: 3,228
Ahhh should have seen that.

David

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?"

# 5 15-04-2003 , 03:39 AM

Registered User
Join Date: Apr 2003
Location: New York, USA
Posts: 1,945
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

##### Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

### Topics

10

By e11productions Animation
0

0

3

5

2

### VFX News

On 2022-07-18 14:30:13

On 2022-07-18 14:17:59

On 2022-07-15 13:14:36

On 2022-05-13 13:52:25

On 2022-05-02 20:24:13

On 2022-04-13 16:02:13