Jump to content

setting rest postion


Recommended Posts

Hey, I have an alembic of a car and it comes with the animation. And the location is way off where the origin of the construction plane is and that's okay. So my question is basically I'm trying to create a rest position onto the location of where the origin of the construction plane is. I kinda used a transform SOP and just moved the car but is there like a more methodical way of moving it to the center of the construction plane?  Thanks! 

 

Link to comment
Share on other sites

Hey,

 

Not sure if i understand exactly what you want, but if u just wan't to move something to the origin you can use '-$CEX', '-$CEY', '-$CEZ' on the translate channel of a transform node! Will shift it to the center.

Keep in mind that this uses the BBOX of the ofbject, so u might get some oscilation if the object changes in dimensions during animation...

 

Hope it helps.

Link to comment
Share on other sites

time shift set to first frame (or any frame, just make sure that its not time depended anymore), set the transform sop like marcelo suggested. do rest sop and attribute transfer the rest over to your animated geo

Edited by sekow
Link to comment
Share on other sites

I'd add a simplification here: instead of doing an Attribute Transfer, just plug in your transformed, time-shifted geometry in to the 2nd input of the Rest sop. This will be faster and more accurate, it performs the same function as the Attribute Copy.

 

Attribute Transfer uses spatial sampling and wouldn't work in this case since the two cars will not be in the same position. Additionally it can muddle values, (this is useful if you want to blur an attribute) and is slower than just copying the attribute between corresponding points. 

Link to comment
Share on other sites

I'd add a simplification here: instead of doing an Attribute Transfer, just plug in your transformed, time-shifted geometry in to the 2nd input of the Rest sop. This will be faster and more accurate, it performs the same function as the Attribute Copy.

 

Attribute Transfer uses spatial sampling and wouldn't work in this case since the two cars will not be in the same position. Additionally it can muddle values, (this is useful if you want to blur an attribute) and is slower than just copying the attribute between corresponding points. 

jep youre right it was attribute copy sop.

but your way is much cleaner and straight forward

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...