Jump to content
myke3d

UV's from last frame

Recommended Posts

Hi, I'd like to have some dynamic objects, or particles and then project the uv's at a certain frame, it can be the last frame and then I want them to be locked to the geometry to from this frame and the first.

 

I tried with rest node but I could not achieve what I want. 

 

Can you help me?

 

I sent a file with a example with some spheres.

uvs_lastframe.hiplc

Share this post


Link to post
Share on other sites

You can just drop down a python node after the UV Project and then have the Python node bypass the UV Project node until you reach your end frame.

n = hou.node('/obj/grid_object1/uvproject1')
if `$F` == 100:
    n.bypass(0)
else:
    n.bypass(1)

Note: The default operation of the UV Quickshade is to view UVs. If there are no UVs, in this case when the projection is bypassed the UV Quickshade will create UVs. Just a warning, if you want absolutely no UVs make sure to bypass or remove the quickshade as well.

Edited by Atom

Share this post


Link to post
Share on other sites

I'm not sure I understood. Well I want to have UV's all the time... but I want them to be based on the last position.

 

the idea is to create an effect like this from benjamin button opening tittle. 

 

So I need the uv's but them to be fixed in the uv space.

Share this post


Link to post
Share on other sites

run your sim to disk and read it back in.

 

add a timeshift and set it to your last frame of sim and make your uvs on this chain

 

now plug that into input 2 on a point wrangle, with input 1 being your read-in sim

 

use this code:

v@uv = point(1,"uv",i@ptnum);

Share this post


Link to post
Share on other sites

Timeshift SOP to last frame, AttribCopy SOP the uvs to your live geo.

Share this post


Link to post
Share on other sites

Thanks a lot guys... 

 

I researched a little bit. I found I was doing something wrong before. I was doing uvs on vertex and should do on point. 

 

I then did 3 methods and I will share now the file if you want to see... 

 

I think the Fathom method is the best with p wrangler...

uvs_lastframe.hiplc.hipnc

  • Like 2

Share this post


Link to post
Share on other sites

 

run your sim to disk and read it back in.

 

add a timeshift and set it to your last frame of sim and make your uvs on this chain

 

now plug that into input 2 on a point wrangle, with input 1 being your read-in sim

 

use this code:

v@uv = point(1,"uv",i@ptnum);

hi i want to try this but with fluids. some advice.? 

Share this post


Link to post
Share on other sites

if you're talking about a fuild mesh, it's not quite so easy since the topology is likely to be changing every frame.  this method relies on constant topology and just changing point positions.

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

×