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
​
-- 
*Marcus Ottosson*
konstrukt...@gmail.com

-- 
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_maya+unsubscr...@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.

Reply via email to