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

Max: Bugfix saving camera scene errored out when creating render instance with multi-camera option turned off #6163

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
5 changes: 5 additions & 0 deletions openpype/hosts/max/plugins/publish/save_scenes_for_cameras.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ class SaveScenesForCamera(pyblish.api.InstancePlugin):
families = ["maxrender"]

def process(self, instance):
if not instance.data.get("multiCamera"):
self.log.debug(
"Multi Camera disabled. "
"Skipping to save scene files for cameras")
return
current_folder = rt.maxFilePath
current_filename = rt.maxFileName
current_filepath = os.path.join(current_folder, current_filename)
Expand Down
Loading