I want to map each frame of an animation to a specific time-stamp driven by a python script. I constructed a partially working scene from items gleaned in other forum posts and the documentation.
The python script, a node in the /obj level, has the routine Frame2ClockTime which calls hou.frame() and builds a clock string from the frame number. The output string ‘clock’ is then written to the font object. Here's part of the code in the script node ‘/obj/Update_Timestamp’.
clock = Frame2ClockTime(year,month,day,hour,minute,seconds)
# update timestamp object text
hou.node(“/obj/TimeStamp/font1”).parm(“text”).set(clock)
The info box shows the node is Time Dependent.
If I scrub through the frames in Scene View, the timestamp updates correctly.
But if I launch a mantra render, either direct to disk or in background, the timestamp does not update at all, but retains its last value.
I'm probably missing some simple setting, but have not found it.
Suggestions?
Thanks,
Tom