Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Maya: fix Review image plane attribute #3569

Merged
merged 5 commits into from
Jul 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions openpype/hosts/maya/plugins/publish/extract_thumbnail.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ def process(self, instance):
# camera.
if preset.pop("isolate_view", False) and instance.data.get("isolate"):
preset["isolate"] = instance.data["setMembers"]

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blank line contains whitespace

# Show or Hide Image Plane
image_plane = instance.data.get("imagePlane", True)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trailing whitespace

if "viewport_options" in preset:
preset["viewport_options"]["imagePlane"] = image_plane
else:
preset["viewport_options"] = {"imagePlane": image_plane}

with lib.maintained_time():
# Force viewer to False in call to capture because we have our own
Expand All @@ -118,6 +125,7 @@ def process(self, instance):

_, thumbnail = os.path.split(playblast)


self.log.info("file list {}".format(thumbnail))

if "representations" not in instance.data:
Expand Down