LUA - Output Scaling

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

MLanghausen

  • Posts: 131
  • Joined: Thu Jul 12, 2018 4:26 pm
  • Real Name: Michael Langhausen

LUA - Output Scaling

PostThu Oct 04, 2018 4:29 pm

Hello!
I am not able to set the project "Output Scaling Resolution"

Here is what I am using, however, it never excepts the resolution string.
As a test, I was able to change "Timeline Resolution" with no issues.

There is already a ticket created for this issue #EGV-626-30782

The following script works perfectly every time.

Code: Select all
local resolve = Resolve()
local pm = resolve:GetProjectManager()
local proj = pm:GetCurrentProject()

proj:SetSetting('timelineResolutionHeight', "720")
proj:SetSetting('timelineResolutionWidth', "2000")
proj:SetSetting("timelineOutputResMismatchBehavior", "stretch")


Output Sizing - Doesn't Work
Code: Select all
local resolve = Resolve()
local pm = resolve:GetProjectManager()
local proj = pm:GetCurrentProject()



proj:SetSetting("timelineOutputResMatchTimelineRes", tostring(0))
proj:SetSetting("timelineOutputResMismatchUseCustomPreset", tostring(0))
proj:SetSetting("timelineOutputResMismatchCustomPreset", "None")
proj:SetSetting("timelineOutputResolutionWidth", "720")
proj:SetSetting("timelineOutputResolutionHeight", "2000")
proj:SetSetting("timelineOutputPixelAspectRatio", "square")
proj:SetSetting("timelineOutputResMismatchBehavior", "scaleToCrop")



Even if I remove the following line, it still doesn't work

proj:SetSetting("timelineOutputResMismatchUseCustomPreset", tostring(0))
proj:SetSetting("timelineOutputResMismatchCustomPreset", "None")


Everything in the above works except for changing the resolution & custom drop-down setting to "custom"

In script 01, the "custom" resolution drop-down in project settings automatically switches to "custom" and there is no attribute I could find for this when dumping the project settings.

No matter how many different ways I set the "custom" drop-down in Output Scaling the following dump attribute always stayed the same:

timelineOutputResMismatchCustomPreset = None

Could not being able to change this setting be what is not allowing me to change the Output Resolution in Output Scaling?
ASUS Prime X299 - Deluxe II
Intel Core i9 7980XE
80 GB DDR4 RAM
NVIDIA 3090Ti - Studio Driver
Intensity Pro 4k
Window 11 Pro

Resolve Studio 18.1.3 Build 8
Fusion Studio 17.3

Return to DaVinci Resolve

Who is online

Users browsing this forum: creatubers, Dave1943, Google [Bot], NicholsMediaPress and 246 guests