Pre-Frame Event Callback - Does this exist in some form?

   556   3   0
User Avatar
Member
20 posts
Joined: Dec. 2020
Offline
Hello all,

Is there an event callback for when the frame changes when caching/saving to disk (Pre-Frame)?

I know of the "Pre-Frame" script which executes before each frame is cached, however is there a way to hook in to any "Pre Render" event in the Houdini session so that I don't need to set a "Pre Frame" script on every ROP?

Any ideas welcome, thank you

Attachments:
Screenshot 2024-06-12 161640.png (54.5 KB)

User Avatar
Member
2607 posts
Joined: June 2008
Offline
You can link a script to the frame change of the playbar.
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
20 posts
Joined: Dec. 2020
Offline
This doesn't get invoked when Caching to Disk, which is the crux of my issue. The frame isn't actually changed when caching/writing IFDs.
User Avatar
Member
1920 posts
Joined: Nov. 2006
Offline
Unfortunately having global scripts for these render events is a long requested feature.

At this point the "best" you can do it is to use a ROP render callback (hou.RopNode.addRenderEventCallback()). They will work, however you're left with the tediousness of attaching your callback functions to all ROP nodes on hip file load, or on node creation
Graham Thompson, Technical Artist @ Rockstar Games
  • Quick Links