Jump to content

Hold Frame Specific Point Data


Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...