How to set timelinePlaybackFrameRate from python?

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

raarts

  • Posts: 8
  • Joined: Sun Mar 07, 2021 10:30 am
  • Real Name: Ron Arts

How to set timelinePlaybackFrameRate from python?

PostSun Mar 21, 2021 2:48 pm

Hi,

(Resolve 17.1.24 Mac python 2.7)

For some reason I am not able to set the project timeline playback frame rate from python: Here's my code:

Code: Select all
#!/usr/bin/env fuscript -q -l py2

import pprint
import DaVinciResolveScript as dvr
resolve = dvr.scriptapp("Resolve")
projectManager = resolve.GetProjectManager()

project = projectManager.CreateProject('test project')
if project is None:
  sys.exit()

pprint.pprint(project.GetSetting())
project.SetSetting("timelineFrameRate", str(30))
project.SetSetting("timelinePlaybackFrameRate", str(30))
print('---------')
pprint.pprint(project.GetSetting())
sys.exit()


After this runs, the timeline frame rate is set to 30, but playback framerate is still at 24. How do I set it to 24?

Please help!

Thanks,
Ron

Return to DaVinci Resolve

Who is online

Users browsing this forum: BBUCKLESS, TORM3NTO, WeirdlyAlice and 278 guests