3dbeing Posted January 10, 2012 Share Posted January 10, 2012 So I have an attribute, speed, i've brought it into chops. Now I want to grab the frame the channel reaches a certain value. For simplicity let's say 0. How do I get that frame? Quote Link to comment Share on other sites More sharing options...
michaelw Posted January 10, 2012 Share Posted January 10, 2012 i'm not sure if this is what you want. You could use expression CHOP to get all those frames I think. So I have an attribute, speed, i've brought it into chops. Now I want to grab the frame the channel reaches a certain value. For simplicity let's say 0. How do I get that frame? chopSampleSpeed.hipnc Quote Link to comment Share on other sites More sharing options...
3dbeing Posted January 10, 2012 Author Share Posted January 10, 2012 (edited) i'm not sure if this is what you want. You could use expression CHOP to get all those frames I think. Indeed that should do the trick! Expression chop is still a bit of black magic to me, for instance why doesn't it spike in the middle, where orange crosses twice? thanks! Edited January 10, 2012 by 3dbeing Quote Link to comment Share on other sites More sharing options...
michaelw Posted January 10, 2012 Share Posted January 10, 2012 Indeed that should do the trick! Expression chop is still a bit of black magic to me, for instance why doesn't it spike in the middle, where orange crosses twice? thanks! That's because there's no samples on that exact values. You could hit "d" when at the motion view (the CHOP curves) and see all the sampled values. But you can still get what you want with the following expression: if(ic(0,0,$I-1) * ic(0,0,$I) < 0 || $V == 0, 1, 0) Check out the attached file. Cheers! chopSampleSpeed2.hipnc 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.