From 366aec21a2964e2fd05426a876144e1d27b5856b Mon Sep 17 00:00:00 2001 From: Milan Kolar Date: Wed, 3 Apr 2019 14:20:08 +0200 Subject: [PATCH] add double check on the created namespace. this fixes problem with asseblies not loading becasue of the wron namespace --- pype/plugins/maya/load/load_model.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pype/plugins/maya/load/load_model.py b/pype/plugins/maya/load/load_model.py index 2e76ce8e28..16f3556de7 100644 --- a/pype/plugins/maya/load/load_model.py +++ b/pype/plugins/maya/load/load_model.py @@ -190,6 +190,9 @@ class AbcModelLoader(pype.maya.plugin.ReferenceLoader): reference=True, returnNewNodes=True) + namespace = cmds.referenceQuery(nodes[0], namespace=True) + groupName = "{}:{}".format(namespace, name) + cmds.makeIdentity(groupName, apply=False, rotate=True, translate=True, scale=True)