Timeshift control over image sequence frame number

   1922   1   0
User Avatar
Member
7 posts
Joined: April 2014
Offline
Hello All,

I retimed a cached sequence with a timeshift node. I am trying to camera project a sequence onto the geometry, using the same frame# as the timeshift node.
1) I tried to paste the channel reference where I'd normally set the $F. - It gives correct result except it adds an asterix before the image format. For instance: imagename.0210.*.jpg

2) I created a variable “shiftedtime” but it just appends the filename with the string of the channel reference added. For instance: imagename.chs("../../../obj/retime_sequence/timeshift1/frame")`.jpg
I am sure I am just not reference my variable correctly or missing some syntax.
User Avatar
Member
7737 posts
Joined: Sept. 2011
Online
you missed the other backtick:
/path/to/texture/imagename.`ch("/path_to_node/frame")`.jpg
if you need it padded (your frame numbers look like 0023):
/path/to/texture/imagename.`padzero(4,ch("/path_to_node/frame"))`.jpg

If the frame variable is fractional, you will have to deal with that by rounding it or casting it to integer.
  • Quick Links