Jump to: Board index » General » Fusion

set timecode via python

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

jamieparry

  • Posts: 4
  • Joined: Sat Apr 04, 2015 5:32 pm

set timecode via python

PostSun Apr 05, 2015 7:43 pm

hi
does anyone know the correct syntax to set a timecode for a quicktime Saver via python scripting?
for example set the framerate to 25fps and the timecode to 01:00:00:00 in the setMetadata Timecode tool via scripting?
thankyou
j
Offline
User avatar

Stefan Ihringer

  • Posts: 257
  • Joined: Mon Nov 10, 2014 10:40 pm

Re: set timecode via python

PostTue Apr 07, 2015 9:31 pm

If you mouse over any tool input or slider in Fusion, you'll see the scripting ID in the bottom left corner of the screen. Setting the frame rate for example can be done by

Code: Select all
comp.FindTool("SetTimeCode1").FPS=1


because FPS is a multi button that has an integer index starting at 0. The other sliders can be set to their desired values in a similar fashion.
blog and Fusion stuff: http://comp-fu.com/2012/06/fusion-script-macro-collection/
Offline

jamieparry

  • Posts: 4
  • Joined: Sat Apr 04, 2015 5:32 pm

Re: set timecode via python

PostWed Apr 08, 2015 1:25 pm

thanks Stephan
i'd already managed to add a metadata set timecode node with

themetatime=newfing.AddTool("Fuse.SetMetaDataTC")

(where newfing is a new composition) but it's the syntax for setting the timecode within that SetMetaDataTC node i can't find!
it does what i want when i set it manually with the sliders etc, but i need to set it automatically from a parsed EDL. the parsing of the del is all done i just need to alter the timecode for the Quicktime render.
i'm just new to fusion and the documentation for scripting seems…errr…thin :-)
thanks for the help though and if you find anything else let me know!
j
Offline
User avatar

Blazej Floch

  • Posts: 194
  • Joined: Tue Nov 11, 2014 12:48 am
  • Location: Toronto, ON

Re: set timecode via python

PostWed Apr 08, 2015 10:20 pm

The answer is actually in Stephans reply:
Code: Select all
themetatine.FPS = 1


You can find out the ID = Name of the input by hovering over it and looking in the status bar in the bottom left corner.
Offline

jamieparry

  • Posts: 4
  • Joined: Sat Apr 04, 2015 5:32 pm

Re: set timecode via python

PostThu Apr 09, 2015 10:22 am

got it!
works perfectly.
thank you both
just as a matter of interest to a person new to fusion, is there an official python scripting document for fusion anywhere? just so i don't ask MORE dumb questions :-)
j
Offline
User avatar

Blazej Floch

  • Posts: 194
  • Joined: Tue Nov 11, 2014 12:48 am
  • Location: Toronto, ON

Re: set timecode via python

PostThu Apr 09, 2015 10:43 am

Officially: No. Hopefully BMD will deliver once again.

But there are mirros of the old vfxpedia around the net:
http://www.steakunderwater.com/VFXPedia ... =Main_Page

Return to Fusion

Who is online

Users browsing this forum: Google [Bot] and 32 guests