Jump to content
Sign in to follow this  
haggi

Alembic export 3 floats vs vector

Recommended Posts

Hi,

I export particles from my particle sim from Houdini as an Alembic file. Some attributes have three floats instead of vector or color, e.g. pprevious, targetv, all the attributes which are 3flt and have no further description. If I now try to read these attributes in my Maya plugin, I can see that they are defined as float arrays instead of vector arrays. Usually in alembic a vector or color is exported as a float array (one for each point) attribute with extent 3, in the mentioned cases the attribute is exported as float array with extent 1:

vector attribute like position or color: float extent 3 attribute len = 1

3 floats attribute like pprevious, targetv: float extent 1 attribute len = 3

This makes it complicated to read these attributes correctly. Of course I could convert all of these attributes to vector before export, but this seems not to be the correct way, I'd prefer to find a way to read these attributes correctly. Does anyone has an idea how I could find out the correct type from alembic API?

Share this post


Link to post
Share on other sites

Okay, I found it in the Houdini plugin in the alembic repository.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×