Hi Marcus, I don't think there is a easy way to know which mesh is coming from which outPolyMesh attribute.
Why won't you use the AbcImport command? >From the code of the AbcImport Command "...Creating and managing an AlembicNode without the AbcImport command is not currently recommended..." Greets, Colas 2015-08-14 10:27 GMT+01:00 Marcus Ottosson <[email protected]>: > 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* > [email protected] > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOBe2H4ARBvMu_ygWwjj8%2B8Ts4nF3LEEyxu9Gh%3DTvtFbew%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOBe2H4ARBvMu_ygWwjj8%2B8Ts4nF3LEEyxu9Gh%3DTvtFbew%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. 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.
