For DaVinci Resolve, please convert this Lua script for discrete set of each parameter…
- User
For DaVinci Resolve, please convert this Lua script for discrete set of each parameter in input sizing preset, as the calling of set input sizing preset fails to work
-- Get the current project and timeline local project = resolve:GetProjectManager():GetCurrentProject() local timeline = project:GetCurrentTimeline()
-- Get the list of items in video track 1 local liste = timeline:GetItemListInTrack("video", 1)
-- Function to print properties for debugging local function printProperties(totem) print("Current Input Sizing Preset:", totem:GetClipProperty('Input Sizing Preset')) end
-- Iterate over each item in the list for i, item in ipairs(liste) do -- Print item properties before change print("Item properties before change:") printProperties(item:GetMediaPoolItem())
code-- Get the media pool item and change the composite mode local totem = item:GetMediaPoolItem()-- Try to set the 'Input Sizing Preset' and check its value print("Attempting to set 'Input Sizing Preset'") local currentPreset = totem:GetClipProperty('Input Sizing Preset') print("Current preset before setting:", currentPreset)
codelocal success = totem:SetClipProperty('Input Sizing Preset', 'Project') if success then print("'Input Sizing Preset' set successfully to 'Project'") else print("Failed to set 'Input Sizing Preset' to 'Project'") end -- Verify the change local newPreset = totem:GetClipProperty('Input Sizing Preset') print("Current preset after setting:", newPreset) if newPreset == 'Project' then print("Preset updated successfully.") else print("Preset not updated. Please check the preset name or clip type.") endend
- Assistant