Running Python Script file in Resolve

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline

MarcusWolschon

  • Posts: 807
  • Joined: Sun Apr 14, 2013 6:59 pm

Running Python Script file in Resolve

PostThu Aug 30, 2018 3:47 pm

Hello,

I can't figure out how to run a Davincy Resolve Python script that is contained in a file.
I am an experienced developer but it was a long time since I have seen Python and I never used lua before.

The README.txt in the developer documentation says I can use fuscript.exe and the script console but not HOW.
fuscript.exe does not react to "/?" "--help" or "-help" to explain it's usage.
I found
viewtopic.php?f=12&t=72497
and similar topics but they all just copy&paste code intp the console window or use the "-x" parameter of fuscript to have the script itself as part of the command line instead of providing a file.

1)
How to run a python script that is contained in a file (e.g. one of the example scripts) in the console windows of the Fusion -tab?

2)
How to provide fuscript with a filename for the script?
fuscript -l py2 <filename>
does NOT work.
Error:
"Unexpected token '-l' in expression or statement."
Neither does "fuscript.exe /l <filename>"
or "fuscript.exe <filename>".


What I want to do is to automate the creation of a complex timeline showing scaled down versions of all angles of a multicam-clip, a scaled down timeline, 2 generators (smpte colors and 10mV brightness ramp) and a simple text-title (version, timeline name, date).

Return to DaVinci Resolve

Who is online

Users browsing this forum: Bing [Bot] and 280 guests