Jump to content

hou.fileReferences() and cache file sequences


Tronotrond

Recommended Posts

Wonder if anyone could help a python newbie with collecting cached file sequences?

I'm definitively learning by doing here. So far I've made a script that gathers textures and needed files with hou.fileReferences(), but it only collects for the current frame.
The goal is an exported that collects all necessary files to upload and render the scene. Since we're dealing with remote offices and such in these days and often local files and drives, I need a complete upload of assets when submitting the job to Deadline. Along with a remapping of the paths.

But for cached file sequences, I'm struggling slightly as of what would be the best approach.
I could sort out all file nodes and copy all files in the source directory, but not wanting to bloat the upload more than necessary. Since the fileReferences() operation is slightly slow, I don't want to loop through and run it on each frame to be exported either.

A little more finesse would be ideal. Maybe there are even some premade functions I don't even know about?

Anyone got some tips here?
Thanks!

 

A bonus would also be to ignore any other file references in the network above any cache/file nodes.

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