Page 1 of 1

Saver name from loader

PostPosted: Fri May 13, 2016 6:41 pm
by Eugene Afanasiev
How to set saver name and location from loader by default or by script?
And can I override the 000 in image sequences, if I'm to create photos, I call let say photo_01_v01.jpg and it renders and saves photo_01_v01_0000.jpg so is it possible to remove automatic zeros in the end?

Re: Saver name from loader

PostPosted: Mon May 16, 2016 6:28 pm
by Eric Westphal
To save to "clean" image names you could try saving to an .IFL.
Basically a plain text file containing the path and name of the file.
If you want to keep your original file names you can easily generate a matching IFL
by typing at a command prompt:
Code: Select all
dir *.jpg /b >myImages.ifl


Or you could use an InTool Script on the Saver (actually a Frame Saved Script)
which I used extensively while developing the Generation Skin:

Code: Select all
path, name = string.match(filename, "^(.+[/\\])(.+)")
name, extension = string.match(name, "^(.+)(%..+)$")
barename, sequence = string.match(name, "^(.-)(%d+)$")
print("bare:"..barename..extension)
os.remove(path..barename..extension)
os.rename(filename, path..barename..extension)
os.remove(filename)

Re: Saver name from loader

PostPosted: Mon May 16, 2016 7:58 pm
by Eugene Afanasiev
Could you please explain more, how exactly do you use this codes? What are the necessary steps for them to work?

Re: Saver name from loader

PostPosted: Mon May 16, 2016 11:03 pm
by Eric Westphal
Well...easy....:-)
Either create an IFL by executing the DOS command in a shell.
(WindowsKey-R "cmd", or shift-RMB-"Open Command Line Here" in Explorer)
or copy the InTool script into the Saver's "Frame Saved Script" in the scripting tab.

Re: Saver name from loader

PostPosted: Tue May 17, 2016 4:17 am
by Travis Schmiesing
I use Eric's method for removing the trailing number on stills. It works well.

Re: Saver name from loader

PostPosted: Wed May 22, 2024 12:17 pm
by dj_buckley
Hey, appreciate this thread is nearly a decade old. But I have a similar question.

The script works great. But it also gets rid of any numbers I specify.

So I was originally saving my stills with the format - RENDER_220524.jpg

But then when I saved the file the numbers were being replaced with - RENDER_000000.jpg

I then used the script as per the thread but now it saves as - RENDER_.jpg

So is there any way to modify that script to keep my 'custom' numbers. I appreciate I can add an underscore to the file name after my custom numbers but I don't want that extra underscore either.

Also assuming the script can be adapted, can it then be saved as a default so it's there every time I create a saver node?

I'm relatively new to Fusion so go easy.

Re: Saver name from loader

PostPosted: Wed May 22, 2024 3:56 pm
by KrunoSmithy
dj_buckley wrote:So is there any way to modify that script to keep my 'custom' numbers. I appreciate I can add an underscore to the file name after my custom numbers but I don't want that extra underscore either.


One way is to use existing saver node that comes with Fusion and rename it with another tool after export, and there are many tools out there with complex renaming rules for anything you might need. I'm sure some could be even automated for what you need.

From fusion itself, I just took a look into it, and there is on the reactor few tools you can look into that can do what you want, but as far as I can see they can only save in various .EXR format flavors. Unless I'm missing something.

Two to look at are :

.....................................

LifeSaver is a fuse based replacement for the traditional Saver or MediaOut nodes. This fuse uses EXRIO for the file output and supports multi-channel and multi-part EXR image saving. This node is special in that you can use the same node in comps that are created inside of both Resolve's Fusion page and inside of Fusion Standalone.

.....................................

pioSaver is a fuse based replacement for the traditional Saver node.

.....................................

(Reactor is a package manager created by the We Suck Less Community for Fusion (Free) and Fusion Studio. Reactor streamlines the installation of 3rd party content through the use of "Atom" packages that are synced automatically with a Git repository.)

https://www.steakunderwater.com/wesuckl ... =32&t=3067

Re: Saver name from loader

PostPosted: Fri May 24, 2024 10:57 am
by dj_buckley
KrunoSmithy wrote:One way is to use existing saver node that comes with Fusion and rename it with another tool after export


Sure, that's what I'm doing at the minute, delete the 0's and replace with the date. But it gets a bit tedious after a while :)

I'll look into the Reactors ones, thanks.

Re: Saver name from loader

PostPosted: Fri May 24, 2024 11:12 am
by KrunoSmithy
dj_buckley wrote: Sure, that's what I'm doing at the minute, delete the 0's and replace with the date. But it gets a bit tedious after a while :)


Are you using some kind of automated software, there are lot of renaming utilities out there that should allow you to set up find and replace style rules and it should be simple as drag and drop into app, apply a rule and done. Maybe some could be also automated to watch particular folder for trigger.

But, yeah, if you don't want that, reactor has some options to check out. Good luck.

Re: Saver name from loader

PostPosted: Fri May 24, 2024 12:03 pm
by bentheanimator
You have to modify the script from earlier to parse the file name a particular way. It's using Lua, so you would have to look through the Lua docs for string manipulation. You might want to try using some AI to write it for you. It does a good job of writing boilerplate.