- Posts: 4
- Joined: Sat Mar 02, 2024 2:12 pm
- Real Name: Serhii Kalinin
Hello, community!
I'm working on a project in DaVinci Resolve and trying to automate adding elements to the timeline using the DaVinci API. The documentation describes various methods for adding effects like titles and generators, but I'm facing some difficulties in implementing them.
Here are the methods I'm using:
InsertGeneratorIntoTimeline(generatorName) and InsertTitleIntoTimeline(titleName) work fine and add simple titles and generators to the timeline.
However, when it comes to Fusion titles and generators using InsertFusionGeneratorIntoTimeline(generatorName) and InsertFusionTitleIntoTimeline(titleName), the code doesn't work as expected. Attempts to add Fusion elements to the timeline are unsuccessful.
Here's a snippet of my code:
I can't figure out what I'm doing wrong or if there are any API limitations that I'm not aware of. I'd appreciate any help or advice from anyone who has faced a similar issue.
Thanks in advance!
I'm working on a project in DaVinci Resolve and trying to automate adding elements to the timeline using the DaVinci API. The documentation describes various methods for adding effects like titles and generators, but I'm facing some difficulties in implementing them.
Here are the methods I'm using:
InsertGeneratorIntoTimeline(generatorName) and InsertTitleIntoTimeline(titleName) work fine and add simple titles and generators to the timeline.
However, when it comes to Fusion titles and generators using InsertFusionGeneratorIntoTimeline(generatorName) and InsertFusionTitleIntoTimeline(titleName), the code doesn't work as expected. Attempts to add Fusion elements to the timeline are unsuccessful.
Here's a snippet of my code:
- Code: Select all
import DaVinciResolveScript as dvr_script
resolve = dvr_script.scriptapp("Resolve")
projectManager = resolve.GetProjectManager()
currentProject = projectManager.GetCurrentProject()
currentTimeline = currentProject.GetCurrentTimeline()
# Simple titles and generators are added to the timeline without problems
# Examples:
simple_title = currentTimeline.InsertTitleIntoTimeline('Text') #work correct
simple_title = currentTimeline.InsertTitleIntoTimeline('Scroll') #work correct
simple_title = currentTimeline.InsertTitleIntoTimeline('Middle Lower Third') #work correct
simple_generator = currentTimeline.InsertGeneratorIntoTimeline('Solid Color') #work correct
simple_generator = currentTimeline.InsertGeneratorIntoTimeline('Window') #work correct
simple_generator = currentTimeline.InsertGeneratorIntoTimeline('10 Step') #work correct
# Fusion titles and generators are NOT added to the timeline
# Examples:
fusion_title = currentTimeline.InsertFusionTitleIntoTimeline('Call Out') #fail
fusion_title = currentTimeline.InsertFusionTitleIntoTimeline('Drop In') #fail
fusion_title = currentTimeline.InsertFusionTitleIntoTimeline('Jitter') #fail
fusion_generator = currentTimeline.InsertFusionGeneratorIntoTimeline('Noise Gradient') #fail
fusion_generator = currentTimeline.InsertFusionGeneratorIntoTimeline('Contours') #fail
fusion_generator = currentTimeline.InsertFusionGeneratorIntoTimeline('Texture Background') #fail
# fusion_generator => None and fusion_title => None too.
I can't figure out what I'm doing wrong or if there are any API limitations that I'm not aware of. I'd appreciate any help or advice from anyone who has faced a similar issue.
Thanks in advance!