RedditPP Mascot

RedditPP

r/davinciresolve • … • u/jackbobevolved

Is it possible to add variable tokens within Python API?

I'm running into an issue with utilizing Resolve's built in variables (i.e. typing % into a text box) from within the Python API. Essentially, I'm trying to inject variables into the render settings for name, path, and subfolder.

Attempting to use %Metadata Name returns "%Metadata Name" instead. Looking at the path that appears when submitting the job shows T(Metadata Name) when using built in variables, but mimicking that didn't appear to work either.

I was able to get around this by using a Render Preset, but this needs to be accessible across all projects and databases, so that's out as an option. Because the clip naming is based on metadata, there is no way to handle the naming within Python, without making individual timelines for every clip.

— 0