Jump to content
Sign in to follow this  
starlighter

Wire simulation, switch between keyframe and sim

Recommended Posts

Hi all,

i do believe that this is quite trivial question but haven't managed to yet find the answer on it.
I have some wire animation coming in and at certain frame i would like to stop it from being
animation and let the simulation to take over. What would be the way to do this?

Thanks in advance!

Share this post


Link to post
Share on other sites

At SOPS level use a timeblend node. Set the Hold Last Frame parameter to the last frame of your animation.  Then simulate your wire your wire at the held frame.  There are many ways to specify when your simulation will start.  The easiest being to set the Start Frame parameter on your DOP net. 

Share this post


Link to post
Share on other sites

Thanks Matthew, yes, i've done the easy way of just setting it on the DOP, but now looking
for a way to have the anim and sim being blended. I know there is a blend node to use them
between sim/solvers so at the moment looking into that.

Share this post


Link to post
Share on other sites

if both geos have the same pointcount and pointorder you could use a point_wrangle:

1. create point wrangle

2. pipe animated mesh into input1

3. pipe simulated mesh into input2

4. add the following code:

v@P = lerp(v@P, v@opinput1_P, chf("blend"));

5. click that little icon on the right hand side of your code text box that says "Create spare parameters..." to create a slider

 

now you can blend between both versions and keyframe it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×