Jump to: Board index » General » Fusion

Saver no numbering on a PNG

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

Helge Tjelta

  • Posts: 156
  • Joined: Fri Mar 08, 2013 8:07 am
  • Location: Oslo, NORWAY

Saver no numbering on a PNG

PostTue Nov 08, 2016 11:10 pm

Hi, I want to output 1 frame as an PNG and giving it a name_p1_.png gives me name_p1_0000.png as name

How do I get rid of the range of numbers ?

I just want it to become name_p1_.png
Offline
User avatar

Adelson Munhoz

  • Posts: 271
  • Joined: Thu Mar 05, 2015 5:44 pm

Re: Saver no numbering on a PNG

PostWed Nov 09, 2016 9:51 am

Hi Helge,

in order to save just one frame you can right-ckick in the viewer an choose "save image"

Keep in mind that, differently of a regular render, your quality controls affect the results.

If you are using proxy mode, for instance, your frame will have a proxy quality too.
Offline
User avatar

Helge Tjelta

  • Posts: 156
  • Joined: Fri Mar 08, 2013 8:07 am
  • Location: Oslo, NORWAY

Re: Saver no numbering on a PNG

PostMon Nov 14, 2016 9:49 pm

Hi, I was working on a setup for a lot of inputs to savers in one setup, with linked settings for some of the tools...

so I was looking to build a set (i.e. 50 images, with each own output...)
Offline

Ivan Ivanov

  • Posts: 86
  • Joined: Tue Nov 11, 2014 11:16 am

Re: Saver no numbering on a PNG

PostMon Nov 21, 2016 6:48 am

You can use this script-modified saver, courtesy to SirEdric

Code: Select all
{
   Tools = ordered() {
      Saver_Bare_Name = Saver {
         CtrlWZoom = false,
         NameSet = true,
         Inputs = {
            ProcessWhenBlendIs00 = Input { Value = 0, },
            Clip = Input {
               Value = Clip {
                  Length = 0,
                  Saving = true,
                  TrimIn = 0,
                  ExtendFirst = 0,
                  ExtendLast = 0,
                  Loop = 1,
                  AspectMode = 0,
                  Depth = 0,
                  TimeCode = 0,
                  GlobalStart = -2000000000,
                  GlobalEnd = 0,
               },
            },
            OutputFormat = Input { Value = FuID { "QuickTimeMovies", }, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2", }, },
            StartEndRenderScripts = Input { Value = 1, },
            FrameSavedScript = Input { Value = "path, name = string.match(filename, \"^(.+[/\\\\])(.+)\")\r\nname, extension = string.match(name, \"^(.+)(%..+)$\")\r\nbarename, sequence = string.match(name, \"^(.-)(%d+)$\")\r\nprint(\"bare:\"..barename..extension)\r\nos.remove(path..barename..extension)\r\nos.rename(filename, path..barename..extension)\r\nos.remove(filename)", },
            ["QuickTimeMovies.Quality"] = Input { Value = 100, },
         },
         ViewInfo = OperatorInfo { Pos = { 204, 47, }, },
      },
   },
   ActiveTool = "Saver_Bare_Name",
}
Offline

Cyril Gimenez

  • Posts: 4
  • Joined: Sun Mar 05, 2017 5:24 pm

Re: Saver no numbering on a PNG

PostTue Jun 13, 2017 2:18 pm

Hi there,

I'm facing a similar problem.
I've got all my savers setup, with file path and name.
I'm working on frame 0 only.

each saver has the same file name but incremented:
saver1 -> ..../image_01.png
saver2 -> ..../image_02.png
...

the problem is that every saver REnumber the file it render, so they ALL save on image_00.png
Every saver overwrite the previous one.
So I end up with only 1 file, instead of the 800 expected (the number of savers).

So I'm looking for a way to avoid the REnumbering (can't find any)
Or as an alternative solution, I'm looking for how to write code that will ADD "_" before the .png (extension).

this would give me:
.../image_01_0000.png
.../image_02_0000.png
.../image_03_0000.png
...

I guess the solution would be parsing, like in this line :

FrameSavedScript = Input { Value = "path, name = string.match(filename, \"^(.+[/\\\\])(.+)\")\r\nname, extension = string.match(name, \"^(.+)(%..+)$\")\r\nbarename, sequence = string.match(name, \"^(.-)(%d+)$\")\r\nprint(\"bare:\"..barename..extension)\r\nos.remove(path..barename..extension)\r\nos.rename(filename, path..barename..extension)\r\nos.remove(filename)", },

But I just don't know how to code it.

Can you help me ?
Offline

Sander de Regt

  • Posts: 3557
  • Joined: Thu Nov 13, 2014 10:09 pm

Re: Saver no numbering on a PNG

PostTue Jun 13, 2017 7:39 pm

If you add the _ yourself in the saver-name that's exactly what you will get:

.../image_01_0000.png
.../image_02_0000.png
.../image_03_0000.png
Sander de Regt

ShadowMaker SdR
The Netherlands

Return to Fusion

Who is online

Users browsing this forum: No registered users and 30 guests