Collect display lights list in lib.

This commit is contained in:
Toke Stuart Jepsen 2022-12-14 09:18:45 +00:00
parent e214062047
commit 6bc8748b99
3 changed files with 4 additions and 4 deletions

View file

@ -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"""

View file

@ -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

View file

@ -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)