diff --git a/openpype/hosts/max/api/lib.py b/openpype/hosts/max/api/lib.py index e98d4632ba..9b3d3fda98 100644 --- a/openpype/hosts/max/api/lib.py +++ b/openpype/hosts/max/api/lib.py @@ -304,6 +304,7 @@ def reset_unit_scale(): scene_scale = unit_scale_setting["scene_unit_scale"] rt.units.SystemType = rt.Name(scene_scale) + def convert_unit_scale(): """Convert system unit scale in 3dsMax for fbx export diff --git a/openpype/hosts/max/api/pipeline.py b/openpype/hosts/max/api/pipeline.py index ea4ff35557..98895b858e 100644 --- a/openpype/hosts/max/api/pipeline.py +++ b/openpype/hosts/max/api/pipeline.py @@ -92,7 +92,7 @@ class MaxHost(HostBase, IWorkfileHost, ILoadHost, IPublishHost): self._op_events[handler] = None except RuntimeError as exc: self.log.info(exc) - #self._deferred_menu_creation + self._op_events["init"] = rt.callbacks.addScript( rt.Name("postLoadingMenus"), partial(_emit_event_notification_param, "init"), diff --git a/openpype/hosts/max/plugins/publish/extract_fbx.py b/openpype/hosts/max/plugins/publish/extract_fbx.py index d41f3e40fc..7454cd08d1 100644 --- a/openpype/hosts/max/plugins/publish/extract_fbx.py +++ b/openpype/hosts/max/plugins/publish/extract_fbx.py @@ -63,6 +63,7 @@ class ExtractModelFbx(publish.Extractor, OptionalPyblishPluginMixin): if unit_scale: rt.FBXExporterSetParam("ConvertUnit", unit_scale) + class ExtractCameraFbx(ExtractModelFbx): """Extract Camera with FbxExporter."""