Jump to content

Tool to run ordered file cache nodes


Recommended Posts

Hello everyone,

I have a setup where I need to cache different bgeos along the way. For this I set up various file cache nodes (collider volume -> flip sim -> flip vdbs -> whitewatersource -> whitewatersim).
I'm wondering if there is any way to run this multiple file cache nodes in an orderly fashion?

Cheers,
Diogo

Link to comment
Share on other sites

This is exactly what you can use the new TOPs for - They give you the option to run these water simulations essentially at the same time, with caches further down the stream beginning to run as soon as their dependencies are available.

Link to comment
Share on other sites

  • 2 months later...

A quick way to update all the filecaches can be using a PythonScript node as well , using it in TOPS is a good way ive found to trigger it in sequence . and unlike ROPFetchs in TOPs you dont need to create a explicit node for each filecache .

import hou
from nodesearch import parser
# Create a matcher that finds nodes whose name contains filecache
matcher = parser.parse_query("*filecache*")

network = hou.node("/obj/")
for node in matcher.nodes(network, recursive=True):
    node.parm('execute').pressButton()

This looks for all nodes with "filecache" in their name and triggers their Save to Disk button ( execute ) . the nodesearch function can also do "match only on multiple" queries  ( more details in the help https://www.sidefx.com/docs/houdini/hom/nodesearch.html ) 

as long as named your filecache nodes something like "flip_sim_filecache_01" and "whitewater_filecache_07" then you could have a string of Python nodes in TOPS searching for and caching all nodes of that type in order ( the first nodesearch looking for *flip* and *filecache* , then the next python node looking for the *whitewater* + *filecache* nodes ) . this was ideal for a project that has potentially lots of different filecaches that you dont want to explicitly path to .

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...