Is there any way of doing something this?
from maya import cmds
# Create
mesh = cmds.createNode("mesh")
alembic = cmds.createNode("AlembicNode")
# Set
cmds.setAttr(alembic + ".abc_File", "/folder/file.abc", type="string")
# Connect
cmds.connectAttr(alembic + ".outPolyMesh[0]", mesh + ".inMesh")
I figure the Alembic needs some form of “initialisation” in order for it to create the compound output attribute outPolyMesh, but even if it did, how can I find out which mesh is coming from which attribute?
Thanks,
Marcus
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOBe2H4ARBvMu_ygWwjj8%2B8Ts4nF3LEEyxu9Gh%3DTvtFbew%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CABwp0vNAW5LhNS4PYOY4AmK7WD3nUu3Jf7M3-V1GY5gBPGhyFQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.