Jump to content

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

Link to comment
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
Link to comment
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.

Link to comment
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);
  • Thanks 1
Link to comment
Share on other sites

  • 3 weeks later...

 

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

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