Jump to content
Sign in to follow this  
Pilou

Extract Alembic Data from file with API

Recommended Posts

Hey guys,

I hope everyone is doing well !

I'm trying to use the houdini alembic API. I want to extract point positions directly with API and store them in detail attribute. I juste need the positions for mathematical opreations and as I'll have to deal with dozens (possibly hundreds) of shapes with millions of points, I want to avoid drawing anything I don't need in the viewport that would end in slowing down the viewport drastically.

I'm trying to use this code but I can't find the right name for positions. 

If someone as an idea, it would be greatly appreciated !

Thanks !

import _alembic_hom_extensions as abc
filePath = '/path/to/alembic.abc'
objectPath = '/hierarchy/to/myMeshShape'
positions = abc.alembicArbGeometry(filePath, objectPath, 'P', 0)
# result : ([], False, 'unknown')

 

Edited by Pilou
cleaner tags

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  

×