Page 1 of 1

set timecode via python

PostPosted: Sun Apr 05, 2015 7:43 pm
by jamieparry
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

Re: set timecode via python

PostPosted: Tue Apr 07, 2015 9:31 pm
by Stefan Ihringer
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.

Re: set timecode via python

PostPosted: Wed Apr 08, 2015 1:25 pm
by jamieparry
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

Re: set timecode via python

PostPosted: Wed Apr 08, 2015 10:20 pm
by Blazej Floch
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.

Re: set timecode via python

PostPosted: Thu Apr 09, 2015 10:22 am
by jamieparry
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

Re: set timecode via python

PostPosted: Thu Apr 09, 2015 10:43 am
by Blazej Floch
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