Exocortex / ExocortexCrate

http://exocortex.com/products/crate
BSD 3-Clause "New" or "Revised" License
134 stars 68 forks source link

(MAYA) Can't attach abc files with locators #28

Open m-mitchell opened 9 years ago

m-mitchell commented 9 years ago

On the Maya 2015 plugin, if you export an abc file with a locator in it, then try to attach the abc file into a model with the same locator, the script will error out:

# Error: file: E:/Sites/pypeline/maya/trunk/win/modules/Maya2015ExocortexAlembic/scripts/attach.mel line 34: No object matches name: |group1|locator1|locatorShape1.translate
# Traceback (most recent call last):
#   File "<maya console>", line 1, in <module>
#   File "E:\Sites\pypeline\maya\trunk\win\modules\Maya2015ExocortexAlembic\scripts\ExocortexAlembic\_attach.py", line 20, in attachXform
#     conX = cmds.listConnections(name+".translate")

I think this is because the locator shape is being exported as though it were a transform, and the code to attach transforms assumes the object you're attaching into is a transform.