Updating geometry vs text via python script

   504   0   0
User Avatar
Member
13 posts
Joined: May 2018
Offline
A simple scene.
1) A Python Script node “Update_Timestamp” containing a font node connected to a transform node
2) A Geometry node “TimeStamp” containing a text font node.

The “Update_Timestamp” script is:

frameNumber = hou.frame()
clock = “%05d”%frameNumber

hou.node(“/obj/Update_Timestamp/font1”).parm(“text”).set(“Script: ”+clock)
hou.node(“/obj/Update_Timestamp/transform1”).parm(“ry”).set(frameNumber)

hou.node(“/obj/TimeStamp/font1”).parm(“text”).set(“Geometry: ”+clock)
hou.node(“/obj/TimeStamp”).parm(“ry”).set(frameNumber)

If I set the timeline to play, or click anywhere along the timeline, both objects rotate and their numbers update in the scene view, as you would expect.

However, if I render via mantra_ipr (to disk or background), the ‘Script’ version doesn't update the frame number, nor does it rotate. The ‘Object’ version rotates, but does not update the frame number.

So the script is apparently running for each frame but not updating everything. I'm wondering if there's some setting that I'm missing.

Suggestions?

Thanks,
Tom

Houdini Apprentice v16.5.536, MacOS 10.13.6
  • Quick Links