mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
Optional control of display lights on playblast.
This commit is contained in:
parent
f0ece4b778
commit
2fdd137380
2 changed files with 6 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ 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)
|
||||
|
|
@ -41,5 +42,6 @@ class CreateReview(plugin.Creator):
|
|||
data["keepImages"] = self.keepImages
|
||||
data["imagePlane"] = self.imagePlane
|
||||
data["transparency"] = self.transparency
|
||||
data["displayLights"] = self.displayLights
|
||||
|
||||
self.data = data
|
||||
|
|
|
|||
|
|
@ -97,6 +97,10 @@ class ExtractPlayblast(publish.Extractor):
|
|||
refreshFrameInt = int(pm.playbackOptions(q=True, minTime=True))
|
||||
pm.currentTime(refreshFrameInt - 1, edit=True)
|
||||
pm.currentTime(refreshFrameInt, edit=True)
|
||||
|
||||
# Show lighting mode.
|
||||
index = instance.data.get("displayLights", 0)
|
||||
preset["viewport_options"]["displayLights"] = self.displayLights[index]
|
||||
|
||||
# Override transparency if requested.
|
||||
transparency = instance.data.get("transparency", 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue