Jump to content

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...