Read Alembic tag's data
-
Hi,
Could you please help me find out how to read data from a Talembic tag?There is an object with a vertex color tag, then the object is baked as Alembic by using the "Bake as Alembic" menu item popped by right click on the object.
Then the backed Alembic file is imported automatically. However, the original vertex color tag becomes an Alembic tag.Can you please help me find out how to read the vertex color data from the new Alembic tag?
Thank you very much! -
Hey @BruceC in order to get the real tag data under the alembic tag you need to send MSG_GETREALTAGDATA message to it.
BaseTag* alembicTag = obj->GetTag(Talembic); if (!alembicTab) return; GetRealTagData realTag; alembicTag->Message(MSG_GETREALTAGDATA, &realTag); if (realTag.res && realTag.res.GetType() == Tvertexcolor) { VertexColorTag* const vct = static_cast<VertexColorTag*>(realTag.res); // Do something with it }
Cheers,
Maxime. -
@m_adam, Thank you very much, this works for me!