toothpaste Posted March 29, 2018 Share Posted March 29, 2018 (edited) I'm using point wrangle to activate my packed geometry across 50 frames. I want to apply an initial velocity (only on the activation frame) and angular velocity to each piece as they become active, one way I can think of is to wrangle something like this: if(@Frame == @activationFrame) { v@v = { x, x, x }; v@w = { x, x, x }; } But I can't figure out how to get the frame of activation to do this. Need some assistance on learning how to do this! Thank you! T Edited March 29, 2018 by toothpaste Quote Link to comment Share on other sites More sharing options...
Skybar Posted March 29, 2018 Share Posted March 29, 2018 You can create a counter like if(@active == 1){ @counter += 1; } So when @counter is 1, that is your activation frame. Quote Link to comment Share on other sites More sharing options...
toothpaste Posted March 29, 2018 Author Share Posted March 29, 2018 But wouldn't that apply the same force throughout the sim? Since my object is constantly active after the initial hit? Wouldn't it just fly off into foreverness? Quote Link to comment Share on other sites More sharing options...
Jesper Rahlff Posted March 29, 2018 Share Posted March 29, 2018 1 hour ago, toothpaste said: But wouldn't that apply the same force throughout the sim? Since my object is constantly active after the initial hit? Wouldn't it just fly off into foreverness? piece one gets activated at frame 50 lets say. so on frame 50 active becomes 1 and the counter starts counting. counter is equal to 1 at frame 50. on frame 51 @active is still 1 which then forces the counter to add another one to the sum. Counter is now equal 2. so as stated above. just use if(@counter == 1){ #Do my velocity manipulations here} Quote Link to comment Share on other sites More sharing options...
cwhite Posted March 29, 2018 Share Posted March 29, 2018 This thread has the simplest solution: Quote Link to comment Share on other sites More sharing options...
toothpaste Posted March 29, 2018 Author Share Posted March 29, 2018 Where do you create this counter? I created it in a point wrangle just before going into DOP Net, and the counter is staying at one. It is not ticking upwards. if(i@active == 1) i@countner += 1; But I managed to get it count correct with this: if(i@active == 1) i@countner += 1+@Frame-24; 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.