Jump to: Board index » General » Fusion

Saver name from loader

Learn about 3D compositing, animation, broadcast design and VFX workflows.
  • Author
  • Message
Offline
User avatar

Eugene Afanasiev

  • Posts: 607
  • Joined: Sun Aug 30, 2015 2:57 pm
  • Location: Russia

Saver name from loader

PostFri May 13, 2016 6:41 pm

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?
__
--[[BMD's cameras and Resolve all-post workflow evangelist
My old stuff: http://www.youtube.com/rebelorelse
Debug: Asus ROG Duo GX550 i9 10980 48Gb RAM RTX2080MaxQ DaVinci Resolve Studio / Fusion Studio Latest Version]]--
Offline
User avatar

Eric Westphal

  • Posts: 214
  • Joined: Thu Nov 20, 2014 1:59 pm

Re: Saver name from loader

PostMon May 16, 2016 6:28 pm

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)
my hovercraft is full of eels.
Offline
User avatar

Eugene Afanasiev

  • Posts: 607
  • Joined: Sun Aug 30, 2015 2:57 pm
  • Location: Russia

Re: Saver name from loader

PostMon May 16, 2016 7:58 pm

Could you please explain more, how exactly do you use this codes? What are the necessary steps for them to work?
__
--[[BMD's cameras and Resolve all-post workflow evangelist
My old stuff: http://www.youtube.com/rebelorelse
Debug: Asus ROG Duo GX550 i9 10980 48Gb RAM RTX2080MaxQ DaVinci Resolve Studio / Fusion Studio Latest Version]]--
Offline
User avatar

Eric Westphal

  • Posts: 214
  • Joined: Thu Nov 20, 2014 1:59 pm

Re: Saver name from loader

PostMon May 16, 2016 11:03 pm

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.
my hovercraft is full of eels.
Offline

Travis Schmiesing

  • Posts: 133
  • Joined: Wed Oct 14, 2015 4:01 am

Re: Saver name from loader

PostTue May 17, 2016 4:17 am

I use Eric's method for removing the trailing number on stills. It works well.
Attachments
ScreenCapture_20160516_005.jpg
ScreenCapture_20160516_005.jpg (112.1 KiB) Viewed 2195 times
Offline

dj_buckley

  • Posts: 4
  • Joined: Tue Jun 02, 2020 6:06 pm
  • Real Name: Dave Buckley

Re: Saver name from loader

PostWed May 22, 2024 12:17 pm

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.
Offline
User avatar

KrunoSmithy

  • Posts: 396
  • Joined: Fri Oct 20, 2023 11:01 pm
  • Real Name: Kruno Stifter

Re: Saver name from loader

PostWed May 22, 2024 3:56 pm

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
Offline

dj_buckley

  • Posts: 4
  • Joined: Tue Jun 02, 2020 6:06 pm
  • Real Name: Dave Buckley

Re: Saver name from loader

PostFri May 24, 2024 10:57 am

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.
Offline
User avatar

KrunoSmithy

  • Posts: 396
  • Joined: Fri Oct 20, 2023 11:01 pm
  • Real Name: Kruno Stifter

Re: Saver name from loader

PostFri May 24, 2024 11:12 am

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

bentheanimator

  • Posts: 482
  • Joined: Mon May 13, 2019 10:38 pm
  • Location: Minneapolis, MN
  • Real Name: Ben Hall

Re: Saver name from loader

PostFri May 24, 2024 12:03 pm

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.
Resolve & Fusion Studio 19b2
Windows 11
Intel 12900K @ 5.1GHz | 32GB RAM | RTX4090

MacOS 12.7.2
MacBook Pro 13,3 | 16GB | Radeon 460 4GB | 256GB System | 256GB Scratch

Return to Fusion

Who is online

Users browsing this forum: No registered users and 21 guests