holding pen for refactor
Signed-off-by: Guthrie Adams <guthadam@amazon.com>
This commit is contained in:
@@ -6,6 +6,7 @@ SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
"""
|
||||
|
||||
import azlmbr.bus
|
||||
import azlmbr.atomtools
|
||||
import azlmbr.materialeditor
|
||||
import azlmbr.name
|
||||
import azlmbr.render
|
||||
@@ -122,12 +123,12 @@ def CaptureScreenshot(screenshotOutputPath):
|
||||
|
||||
def ResizeViewport(width, height):
|
||||
# This locks the size of the render target to the desired resolution
|
||||
azlmbr.materialeditor.MaterialEditorWindowRequestBus(azlmbr.bus.Broadcast, 'LockViewportRenderTargetSize', width, height)
|
||||
azlmbr.atomtools.AtomToolsMainWindowRequestBus(azlmbr.bus.Broadcast, 'LockViewportRenderTargetSize', width, height)
|
||||
# This resizes the window to closely match the render target resolution so it doesn't appear stretched while the script is running
|
||||
azlmbr.materialeditor.MaterialEditorWindowRequestBus(azlmbr.bus.Broadcast, 'ResizeViewportRenderTarget', width, height)
|
||||
azlmbr.atomtools.AtomToolsMainWindowRequestBus(azlmbr.bus.Broadcast, 'ResizeViewportRenderTarget', width, height)
|
||||
|
||||
def ReleaseViewportResolutionLock():
|
||||
azlmbr.materialeditor.MaterialEditorWindowRequestBus(azlmbr.bus.Broadcast, 'UnlockViewportRenderTargetSize')
|
||||
azlmbr.atomtools.AtomToolsMainWindowRequestBus(azlmbr.bus.Broadcast, 'UnlockViewportRenderTargetSize')
|
||||
|
||||
def GenerateMaterialScreenshot(materialName,
|
||||
uniqueSuffix="",
|
||||
|
||||
Reference in New Issue
Block a user