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

Commit

Permalink
Merge pull request #6163 from ynput/bugfix/save_files_camera_errored_…
Browse files Browse the repository at this point in the history
…out_render_instance_when_multi_cam_disabled

Max: Bugfix saving camera scene errored out when creating render instance with multi-camera option turned off
  • Loading branch information
moonyuet authored Jan 25, 2024
2 parents 77bfe7e + 7803958 commit 4c0bfa2
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit 4c0bfa2

Please sign in to comment.