mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Collect display lights list in lib.
This commit is contained in:
parent
e214062047
commit
6bc8748b99
3 changed files with 4 additions and 4 deletions
|
|
@ -113,6 +113,8 @@ FLOAT_FPS = {23.98, 23.976, 29.97, 47.952, 59.94}
|
|||
|
||||
RENDERLIKE_INSTANCE_FAMILIES = ["rendering", "vrayscene"]
|
||||
|
||||
DISPLAY_LIGHTS = ["default", "all", "selected", "active", "none"]
|
||||
|
||||
|
||||
def get_main_window():
|
||||
"""Acquire Maya's main window"""
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ class CreateReview(plugin.Creator):
|
|||
"depth peeling",
|
||||
"alpha cut"
|
||||
]
|
||||
displayLights = ["default", "all", "selected", "active", "none"]
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(CreateReview, self).__init__(*args, **kwargs)
|
||||
|
|
@ -42,6 +41,6 @@ class CreateReview(plugin.Creator):
|
|||
data["keepImages"] = self.keepImages
|
||||
data["imagePlane"] = self.imagePlane
|
||||
data["transparency"] = self.transparency
|
||||
data["displayLights"] = self.displayLights
|
||||
data["displayLights"] = lib.DISPLAY_LIGHTS
|
||||
|
||||
self.data = data
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ class ExtractPlayblast(publish.Extractor):
|
|||
families = ["review"]
|
||||
optional = True
|
||||
capture_preset = {}
|
||||
displayLights = ["default", "all", "selected", "active", "none"]
|
||||
|
||||
def process(self, instance):
|
||||
self.log.info("Extracting capture..")
|
||||
|
|
@ -101,7 +100,7 @@ class ExtractPlayblast(publish.Extractor):
|
|||
|
||||
# Show lighting mode.
|
||||
index = instance.data.get("displayLights", 0)
|
||||
preset["viewport_options"]["displayLights"] = self.displayLights[index]
|
||||
preset["viewport_options"]["displayLights"] = lib.DISPLAY_LIGHTS[index]
|
||||
|
||||
# Override transparency if requested.
|
||||
transparency = instance.data.get("transparency", 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue