Jump to content

Offset animated texture map


Recommended Posts

Hi,

I have loaded an animated texture/color map ( for exemple: 0 to 100.tif) , how i can offset it so that the animation begin only on some frames later . In the same way , how is it possible to keep the last frame holded?

Thank you.

Sylvain.

Edited by sly
Link to comment
Share on other sites

it's all about expressions in filename

if your path is

path/filename.0.tif - path/filename.100.tif

you can use `$F+offset`

path/filename.`$F-10`.tif

if your path is

path/filename.000.tif - path/filename.100.tif

you need to pad the frame number so if you want to offset it will be like

path/filename.`padzero(3, $F-10)`.tif

to hold last frame you can use min(offsetFrame, maximumFrameValue ) function

path/filename.`padzero(3, min($F-10,100) )`.tif

to hold first frame you can use max() function in the same way

to hold both ends you can use clamp(offsettedFrame, minimumFrameValue, maximumFrameValue)

path/filename.`padzero(3, clamp($F-10,0,100) )`.tif

  • Like 1
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...