scp Posted July 3, 2008 Share Posted July 3, 2008 Hi all I'm trying to extract point data in order to align 2 pieces of geometry at a specific frame. After that I don't want to continue comparing point data as the geometry will follow the previous animation. As the point positions change the value I want to use to align the objects also changes however I just want to use a constant translation value which is the value returned at frame 45. So if at frame 45 the value is 2.5 I would like to hold this value afterwards. This is the expression I'm trying to use so at the moment it only has a value at frame 45 and otherwise is 0. if($F==45,(point("../xform1",0,"P",1)-point("../xform2",0,"P",1)),0) If anyone could help and possibly show me a way to keep that value after frame 45 that would be hugely appreciated. Thanks Simon Quote Link to comment Share on other sites More sharing options...
old school Posted July 3, 2008 Share Posted July 3, 2008 Two ways right off the top. You can use SOPs or CHOPs. SOPs involves using either a Trail SOP combined with a Carve SOP or a TimeShift SOP all in a separate object. CHOPs uses a Geometry CHOP, Delete CHOP to isolate the channels by point and then a Trim SOP to trim the channels at the time you want. Either method works and no math expressions required (although you can do it that way as well ). Just channel references this time. See the example file attached. fetching_position_in_time.hip -jeff 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.