Action Listener Toggling Views.png
The latest version 2 update to the
Action Listener.lua
script in the "UI Manager Lua Examples" package in Reactor has the ability to vomit back an incredible amount of detail into the Fusion Console view if you enable the
[x]
"Print Action Log to Console" checkbox.
Here are a few Fusion Studio/Resolve v16.1 compatible Lua snippets that show how to individually toggle the visibility of the different view contexts.
All this information was derived from the Action Listener v2 script's Console view output text which everyone has access to.
Hide or Show the Fusion 16 toolbar:
Code: Select all
comp:DoAction("Fusion_View_Show", {view = "ActionStrip", show = false}) -- Hide the "ActionStrip"
bmd.wait(3) -- Pause 3 seconds
comp:DoAction("Fusion_View_Show", {view = "ActionStrip", show = true}) -- show the "ActionStrip"
Hide or Show the Console window:
Code: Select all
comp:DoAction("ACTION_SHOW_CONSOLE", {is_visible = false}) -- Hide the console window
bmd.wait(3) -- Pause 3 seconds
comp:DoAction("ACTION_SHOW_CONSOLE", {is_visible = true}) -- Show the console window
Hide or Show the Clips view:
Code: Select all
comp:DoAction("Fusion_View_Show", {view = "Clips", show = false}) -- Hide the "Clips" view in single monitor mode
bmd.wait(3) -- Pause 3 seconds
comp:DoAction("Fusion_View_Show", {view = "Clips", show = true}) -- Show the "Clips" view in single monitor mode
Hide or Show the Effects view:
Code: Select all
comp:DoAction("Fusion_View_Show", {view = "Effects", show = false}) -- Hide the "Effects" view
bmd.wait(3) -- Pause 3 seconds
comp:DoAction("Fusion_View_Show", {view = "Effects", show = true}) -- Show the "Effects" view
Hide or Show the Inspector view:
Code: Select all
comp:DoAction("Fusion_View_Show", {view = "Inspector", show = false}) -- Hide the "Inspector" view
bmd.wait(3) -- Pause 3 seconds
comp:DoAction("Fusion_View_Show", {view = "Inspector", show = hide}) -- Show the "Inspector" view
Hide or Show the Inspector view (Dual Screen Mode):
Code: Select all
comp:DoAction("Fusion_View_Show", {view = "Inspector", show = false, screen_mode = "DUAL_SCREEN"}) -- Hide the "Inspector" view
bmd.wait(3) -- Pause 3 seconds
comp:DoAction("Fusion_View_Show", {view = "Inspector", show = hide, screen_mode = "DUAL_SCREEN"}) -- Show the "Inspector" view
Hide or Show the Keyframes view:
Code: Select all
comp:DoAction("Fusion_View_Show", {view = "Keyframes", show = false}) -- Hide the "Keyframes" view
bmd.wait(3) -- Pause 3 seconds
comp:DoAction("Fusion_View_Show", {view = "Keyframes", show = true}) -- Show the "Keyframes" view
Hide or Show the (Resolve Fusion Page) MediaPool view:
Code: Select all
comp:DoAction("Fusion_View_Show", {view = "MediaPool", show = false}) -- Hide the "MediaPool" view
bmd.wait(3) -- Pause 3 seconds
comp:DoAction("Fusion_View_Show", {view = "MediaPool", show = true}) -- Show the "MediaPool" view
Hide or Show the Nodes view:
Code: Select all
comp:DoAction("Fusion_View_Show", {view = "Nodes", show = false}) -- Hide the "Nodes" view in single monitor mode
bmd.wait(3) -- Pause 3 seconds
comp:DoAction("Fusion_View_Show", {view = "Nodes", show = true}) -- Show the "Nodes" view in single monitor mode
Hide or Show the Spline view:
Code: Select all
comp:DoAction("Fusion_View_Show", {view = "Spline", show = false}) -- Hide the "Spline" view
bmd.wait(3) -- Pause 3 seconds
comp:DoAction("Fusion_View_Show", {view = "Spline", show = true}) -- Show the "Spline" view
Toggle the display of the Left and Right image viewers:
Code: Select all
comp:DoAction("Fusion_View_Show", {view = "Viewer1"}) -- Toggle the visibility of the Right view
comp:DoAction("Fusion_View_Show", {view = "Viewer2"}) -- Toggle the visibility of the Left viewer
bmd.wait(3) -- Pause 3 seconds
comp:DoAction("Fusion_View_Show", {view = "Viewer1"}) -- Toggle the visibility of the Right view
comp:DoAction("Fusion_View_Show", {view = "Viewer2"}) -- Toggle the visibility of the Left viewer
Hide and Show the Left and Right image viewers:
Code: Select all
comp:DoAction("Fusion_View_Show", {view = "Viewer1", show = false}) -- Hide the Right view
comp:DoAction("Fusion_View_Show", {view = "Viewer2", show = false}) -- Hide the Left viewer
bmd.wait(3) -- Pause 3 seconds
comp:DoAction("Fusion_View_Show", {view = "Viewer2", show = true}) -- Show the Left viewer
comp:DoAction("Fusion_View_Show", {view = "Viewer1", show = true}) -- Show the Right view
Adjust the height of the (Resolve Edit Page) left and right side panel areas to full height:
Code: Select all
comp:DoAction("Fusion_Zone_Expand", {zone = "AuxLeft", expand = false}) -- Show the left side panel at full height
bmd.wait(3) -- Pause 3 seconds
comp:DoAction("Fusion_Zone_Expand", {zone = "AuxRight", expand = false}) -- Show the right side panel at full height
Code: Select all
comp:DoAction("Fusion_Zone_Expand", {zone = "AuxLeft", expand = false, screen_mode = "DUAL_SCREEN"}) -- Show the 2nd monitor left side panel at full height
bmd.wait(3) -- Pause 3 seconds
comp:DoAction("Fusion_Zone_Expand", {zone = "AuxRight", expand = false, screen_mode = "DUAL_SCREEN"}) -- Show the 2nd monitor right side panel at full height
Adjust the height of the left and right zones areas:
Code: Select all
comp:DoAction("Fusion_Zone_Expand", {zone = "Left", expand = false}) -- Hide the left side panel at full height
bmd.wait(3) -- Pause 3 seconds
comp:DoAction("Fusion_Zone_Expand", {zone = "Left", expand = true}) -- Show the left side panel at full height
Code: Select all
comp:DoAction("Fusion_Zone_Expand", {zone = "Right", expand = false}) -- Hide the right side panel at full height
bmd.wait(3) -- Pause 3 seconds
comp:DoAction("Fusion_Zone_Expand", {zone = "Right", expand = true}) -- Show the right side panel at full height
Hide the Layout Strip (which is the top bar in the UI that has buttons labeled Effects, Nodes, Console, Spline, Keyframes, Inspector):
Code: Select all
comp:DoAction("Fusion_View_Show", {view = "LayoutStrip", show = false}) -- Hide the LayoutStrip
bmd.wait(3) -- Pause 3 seconds
comp:DoAction("Fusion_View_Show", {view = "LayoutStrip", show = true}) -- Show the LayoutStrip
Hide the Timeline bar:
Code: Select all
comp:DoAction("Fusion_View_Show", {view = "Time", show = false}) -- Hide the Timeline bar control
bmd.wait(3) -- Pause 3 seconds
comp:DoAction("Fusion_View_Show", {view = "Time", show = true}) -- Show the Timeline bar control
Reset the (Resolve Fusion page) GUI to its default layout:
Code: Select all
comp:DoAction("Comp_Reset", {}) -- Reset the Fusion composite view layout in Resolve
You do not have the required permissions to view the files attached to this post.