Jump to content
CinnamonMetal

Expression on PopDrag Error

Recommended Posts

if(@Time > 2.8){
@windvelocity3 = -2;
}

I'm trying to write an expression on the PopDrag but I'm getting an error ?

Share this post


Link to post
Share on other sites

Are you trying to set the third element of windvelocity?

 

If so, give this a try:

if(@Time > 2.8){
    windvelocity.z = -2;
}

Share this post


Link to post
Share on other sites

You should write

 

if(@Time > 2.8){
    windvelocity[2] = -2.0;
}

Share this post


Link to post
Share on other sites

mmh strange, it should work.

Could you post a simplified file ?

Share this post


Link to post
Share on other sites

I can't send the scene file; but it occurs only when I try to add an expression to the popDrag DOP node.  

if(@Time > 2.8 && @Time < 3.6){
@windvelocity.z = -2;
}

 

Share this post


Link to post
Share on other sites

syntax inside the VEX field is : windvelocity, not @windvelocity.

  • Like 2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×