Extract Alembic Data from file with API

   1162   0   0
User Avatar
Member
8 posts
Joined: March 2011
Offline
Hey Guys,

Hope everyone is good !

I'm trying to use the houdini Alembic API. I want to extract point Positions directly with API and store them into detail attribute. I just need the positions for mathematical operations and as I'll have to deal with dozens and possibly hundreds of shapes with high resolution, I want to avoid slowing down the viewport so drastically.

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

If someone has an idea I'll appreciate greatly !

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 Pilou35 - Jan. 25, 2021 11:36:55
  • Quick Links