getting fps from timeline instead of project

This commit is contained in:
Jakub Jezek 2023-10-18 12:34:12 +02:00
parent a810dfe78a
commit a11467883b
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -278,7 +278,7 @@ def create_timeline_item(
# timing variables
if all([timeline_in, source_start, source_end]):
fps = project.GetSetting("timelineFrameRate")
fps = timeline.GetSetting("timelineFrameRate")
duration = source_end - source_start
timecode_in = frames_to_timecode(timeline_in, fps)
timecode_out = frames_to_timecode(timeline_in + duration, fps)