Jump to: Board index » General » Fusion

Name Tokens for saver nodes

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

Rich Nosworthy

  • Posts: 14
  • Joined: Tue Sep 19, 2017 7:44 am

Name Tokens for saver nodes

PostFri May 11, 2018 9:34 pm

Hi again,

just following on from my question about padding filenames in saver nodes. Does fusion have any special keywords or tokens that let you access things like the project file name?

For example after effects has something like [compname] which you can put in the output module to specify what the comp is called.

Just looking for a way that i can output my file based on the naming of the fusion comp.

Thankyou
Offline
User avatar

michael vorberg

  • Posts: 943
  • Joined: Wed Nov 12, 2014 8:47 pm
  • Location: stuttgart, germany

Re: Name Tokens for saver nodes

PostFri May 11, 2018 10:24 pm

Right now the loader /saver filenames aren't scriptable

You can use some variables from the path map in settings, but that's all
Offline
User avatar

Bryan Ray

  • Posts: 2478
  • Joined: Mon Nov 28, 2016 5:32 am
  • Location: Los Angeles, CA, USA

Re: Name Tokens for saver nodes

PostFri May 11, 2018 10:58 pm

They're scriptable; they just can't take expressions.

We set most Saver clips by script upon creating the comp from our project management software. I also have a comp script that creates Savers for a particular template. Here are a few relevant lines from that script:

Code: Select all
   x,y = c.CurrentFrame.FlowView:GetPos(c.nullorig)
   origsv = comp:AddTool("Saver", x+2, y+1)
   origsv.Clip = origpath
   origsv.CreateDir = 1
   origsv.OpenEXRFormat.Depth = 1
   origsv.Input = c.nullorig.Output
   origsv:SetAttrs({TOOLS_Name = "origsaver"})


Line 3 sets the file name, and origpath (orig being short for 'original resolution') is created elsewhere in the script. You can get the composition's filename by querying its attributes:

Code: Select all
dump(composition:GetAttrs())


That will display all of the comp's attributes. They're a sub-table under that method, so you can access the comp's name with
composition:GetAttrs().COMPS_Name

You'll probably want to do a little work to strip off the file extension.
Bryan Ray
http://www.bryanray.name
http://www.sidefx.com
Offline

Rich Nosworthy

  • Posts: 14
  • Joined: Tue Sep 19, 2017 7:44 am

Re: Name Tokens for saver nodes

PostFri May 11, 2018 11:05 pm

interesting, thanks for the info guys, will take a look into this!

Return to Fusion

Who is online

Users browsing this forum: Majestic-12 [Bot] and 45 guests