mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #840 from tokejepsen/2.x/feature/maya_playblast_image_plane
Optionally hide image planes from reviews.
This commit is contained in:
commit
a4b2556538
2 changed files with 9 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ class CreateReview(avalon.maya.Creator):
|
|||
defaults = ['Main']
|
||||
keepImages = False
|
||||
isolate = False
|
||||
imagePlane = True
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(CreateReview, self).__init__(*args, **kwargs)
|
||||
|
|
@ -25,5 +26,6 @@ class CreateReview(avalon.maya.Creator):
|
|||
|
||||
data["isolate"] = self.isolate
|
||||
data["keepImages"] = self.keepImages
|
||||
data["imagePlane"] = self.imagePlane
|
||||
|
||||
self.data = data
|
||||
|
|
|
|||
|
|
@ -81,6 +81,13 @@ class ExtractPlayblast(pype.api.Extractor):
|
|||
if instance.data.get("isolate"):
|
||||
preset["isolate"] = instance.data["setMembers"]
|
||||
|
||||
# Show/Hide image planes on request.
|
||||
image_plane = instance.data.get("imagePlane", True)
|
||||
if "viewport_options" in preset:
|
||||
preset["viewport_options"]["imagePlane"] = image_plane
|
||||
else:
|
||||
preset["viewport_options"] = {"imagePlane": image_plane}
|
||||
|
||||
with maintained_time():
|
||||
filename = preset.get("filename", "%TEMP%")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue