CinnamonMetal Posted May 8, 2019 Share Posted May 8, 2019 if(@Time > 2.8){ @windvelocity3 = -2; } I'm trying to write an expression on the PopDrag but I'm getting an error ? Quote Link to comment Share on other sites More sharing options...
Sean-R Posted May 8, 2019 Share Posted May 8, 2019 Are you trying to set the third element of windvelocity? If so, give this a try: if(@Time > 2.8){ windvelocity.z = -2; } Quote Link to comment Share on other sites More sharing options...
flcc Posted May 8, 2019 Share Posted May 8, 2019 You should write if(@Time > 2.8){ windvelocity[2] = -2.0; } Quote Link to comment Share on other sites More sharing options...
CinnamonMetal Posted May 8, 2019 Author Share Posted May 8, 2019 @Sean-R & @flcc Neither works ? Quote Link to comment Share on other sites More sharing options...
flcc Posted May 8, 2019 Share Posted May 8, 2019 mmh strange, it should work. Could you post a simplified file ? Quote Link to comment Share on other sites More sharing options...
CinnamonMetal Posted May 8, 2019 Author Share Posted May 8, 2019 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; } Quote Link to comment Share on other sites More sharing options...
flcc Posted May 8, 2019 Share Posted May 8, 2019 syntax inside the VEX field is : windvelocity, not @windvelocity. 2 Quote Link to comment Share on other sites More sharing options...
CinnamonMetal Posted May 8, 2019 Author Share Posted May 8, 2019 @flcc Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.