Not able to load arbGeomParams in houdini

119 views
Skip to first unread message

r...@zoox.com

unread,
May 2, 2018, 6:47:06 PM5/2/18
to alembic-discussion
Hi,

I am trying to write a alembic file which I want to load in houdini.

I am able to successfully write a mesh and load it into houdini. 

Now I want to an array of vectors as attributes on this OPolyMesh.

I am able to see the vector when I use the AbcLs tool and it shows up the expected hierarchy. But it does not show up in the prim tab of houdini.

the core part of the code which writes the property is as follows :

    OObject rootObj( archive, kTop );
    OXform transformObjTransform( rootObj, "geo1" );
    OPolyMesh meshyObj( transformObjTransform, "primitivewrangle1" );
    OPolyMeshSchema &mesh = meshyObj.getSchema();
    OCompoundProperty properties = mesh.getArbGeomParams();
    OV3fArrayProperty positions( properties, "positions");

    std::vector<V3f> vals;
    vals.push_back( g_vectors[0] );
    vals.push_back( g_vectors[1] );
    positions.set( vals );


I have attached the complete code and the output alembic file.
Please let me know what I am missing.
Thanks in advance
sample
polyMesh1.abc

Lucas Miller

unread,
May 2, 2018, 6:55:44 PM5/2/18
to alembic-d...@googlegroups.com
It's probably skipping it because you didn't give it the correct scope.

I'm a little shaky on the terminology but if you are expecting it to
be in the prim tab, that means you have one V3f per face on the mesh?

If so, you need to use OV3fGeomParam, and set the scope to uniform.

https://github.com/alembic/alembic/blob/master/lib/Alembic/AbcGeom/GeometryScope.h#L58

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.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages