setting a second sample on the OPolyMeshSchema creates a invalid mesh in Maya

19 views
Skip to first unread message

luiz elias

unread,
Jun 3, 2023, 6:31:49 PM6/3/23
to alembic-discussion
Hello,

I'm trying to export a mesh with animation. For that I've copied a test example from git hub:

inside void optPropTest() it shows how to apply multiple samples on the OPolyMeshSchema but it creates a invalid mesh in maya with zero verts. If I comment line 333 than it works but I lose the animation:

        for ( size_t i = 0; i < 2; ++i )
        {
            mesh.set( mesh_samp );
            for ( size_t j = 0; j < g_numVerts; ++j )
            {
                verts[j] *= 2; // <--- commenting this line creates a valid mesh in maya 
            }
        }

That's the only example I could find on how to export a animated mesh. 

Any idea of why it happens and how to fix it?

Thank You



Lucas Miller

unread,
Jun 3, 2023, 6:55:32 PM6/3/23
to alembic-d...@googlegroups.com
Did you look at the file with another tool like abcls to confirm the point data is as you expect?

It could be an issue where maybe your point data went out of scope or was cleared (verts)  between sample sets, or maybe the data is structured in a way that Maya doesnt like when animated. (does your polymesh have a transform above it?)

Lucas

--
You received this message because you are subscribed to the Google Groups "alembic-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alembic-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alembic-discussion/6356b081-367b-4ab8-8940-d1e712eb5d3cn%40googlegroups.com.

luiz elias

unread,
Jun 3, 2023, 7:26:26 PM6/3/23
to alembic-discussion
You are right, the problem was the missing transform.
What is wierd is that if there is a missing transform, maya creates one for you, as long the mesh has a single sample.

Thanks for the help!!!
Reply all
Reply to author
Forward
0 new messages