Creating MetaData in maya

247 views
Skip to first unread message

Christopher Horvath

unread,
Dec 2, 2016, 8:34:50 PM12/2/16
to alembic-discussion
Hey folks,

how do I create information on an object (a Group) in Maya to be exported as MetaData?  I basically need to add the following string/string pairs and have them be saved to the object meta data:

{"secondary_object_interpretation", "corkscrew"},
{"is_transposed", "true",

Thanks!

In code, I'd just do:

MetaData meta_data;
meta_data.set("secondary_object_interpretation", "corkscrew");
meta_data.set("is_transposed", "true");

AbcGeom::OXform xform_exporter{parent, "MyGroup", meta_data};

Thanks,
Chris

Lucas Miller

unread,
Dec 2, 2016, 8:36:20 PM12/2/16
to alembic-d...@googlegroups.com
AbcExport currently doesn't have a mechanism/convention to do this.
> --
> 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.

Paul Winex

unread,
Dec 3, 2016, 12:24:40 AM12/3/16
to alembic-discussion

Christopher Horvath

unread,
Dec 5, 2016, 1:36:23 PM12/5/16
to alembic-discussion
Hey Lucas,

Would the strategy for meta-data-esque things then be to use a string property on the object instead?  Does Maya support property export for properties that are not geom params? Every time I make a property and specify it in the export dialog, it always gets turned into an .arbGeomParam, even when it is something like a single string.

Thanks!

Lucas Miller

unread,
Dec 5, 2016, 2:37:24 PM12/5/16
to alembic-d...@googlegroups.com
> Would the strategy for meta-data-esque things then be to use a string property on the object instead?

You would need a convention to differentiate extra meta data on the
object vs extra meta data for the property.
Maybe a string named METADATA would be added to the object, and a
string with the same name as your property but appended with _METADATA
would be for that property (propName_METADATA)


> Does Maya support property export for properties that are not geom params?

AbcExport has -u for specifying that the attr be written as a user
attr and not as an arb geom param.
>> > email to alembic-discuss...@googlegroups.com.
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> 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.
Reply all
Reply to author
Forward
0 new messages