mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #6163 from ynput/bugfix/save_files_camera_errored_out_render_instance_when_multi_cam_disabled
Max: Bugfix saving camera scene errored out when creating render instance with multi-camera option turned off
This commit is contained in:
commit
4c0bfa293f
1 changed files with 5 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue