From f6a99d835fa01f328f73e7a8f2c074f8bee2250a Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Thu, 1 Nov 2018 10:02:01 +0100 Subject: [PATCH] Force load objExport plug-in at Maya launch --- colorbleed/maya/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/colorbleed/maya/__init__.py b/colorbleed/maya/__init__.py index 86106ee593..4e7bb677b4 100644 --- a/colorbleed/maya/__init__.py +++ b/colorbleed/maya/__init__.py @@ -98,9 +98,14 @@ def on_init(_): utils.executeDeferred(_fn) except Exception as exc: print(exc) - + + # Force load Alembic so referenced alembics + # work correctly on scene open cmds.loadPlugin("AbcImport", quiet=True) cmds.loadPlugin("AbcExport", quiet=True) + + # Force load objExport plug-in (requested by artists) + cmds.loadPlugin("objExport", quiet=True) from .customize import override_component_mask_commands safe_deferred(override_component_mask_commands)