File Cache increment on each save (no overwrite) ?

   2977   4   0
User Avatar
Member
1193 posts
Joined: April 2017
Offline
Hi!

Can Houdini automatically save a different name each time I click on "Save to Disk"?
geo_01.bgeo
geo_02.bgeo
geo_03.bgeo
geo_04.bgeo


-Olivier
User Avatar
Member
8223 posts
Joined: Sept. 2011
Offline
Put a script in the pre-render script to change the version number.
User Avatar
Member
738 posts
Joined: Dec. 2006
Offline
jsmack
Put a script in the pre-render script to change the version number.

I'd add a “ver” slider to the interface, and then change the file naming to (for example):

/path/to/geo/`opname(".")`/v`padzero(4,ch(ver))`/`opname(".")`.$F4.bgeo.sc

… then in the pre-render script have something like:

opparm . ver ("eval(`ch(ver)` + 1)")

Now “save as permanent defaults,” (or make a shelf tool).

Sean
Sean Lewkiw
CG Supervisor
Machine FX - Cinesite MTL
User Avatar
Member
1193 posts
Joined: April 2017
Offline
Ah!

I ended up making a Detail Wrangle that makes the full file path (with version, name, extention). And its outputing 2 paths since I need to save 2 files (.obj and .ass (arnold proxy)). The paths are perfect but I'm having trouble using those strings. What am I doing wrong?

-Olivier

Attachments:
Detail_String_file_save.JPG (65.2 KB)

User Avatar
Member
1193 posts
Joined: April 2017
Offline
AHH!!

I was using ' instead of `
So this is what I needed to use:

`details("../File_naming", "lowObjfile")`

The devil is in the detail wrangles.

-Olivier
  • Quick Links