import _alembic_hom_extensions as abc def getAbcAttr(attrName): geo = hou.pwd().geometry() time = hou.frame() / hou.fps() if geo.findGlobalAttrib("abcFileName") is not None: url = geo.attribValue("abcFileName") for childGeo in abc.alembicGetSceneHierarchy(url, "/")[2]: path = "/" + childGeo[0] + "/" + childGeo[2][0][0] x = abc.alembicArbGeometry(url, path, attrName, time) print(x) getAbcAttr("Cd")
From the abcls output below, can anybody tell me what I need to change in the script to get the attribute values?
/crv_GP_Layer_1_mesh_007/crv_GP_Layer_1_mesh_007Shape/.arbGeomParams:
CompoundProperty Cd {
arrayExtent=1
geoScope=fvr
interpretation=rgba
isGeomParam=true
podExtent=4
podName=float32_t
}
/crv_GP_Layer_1_mesh_007/crv_GP_Layer_1_mesh_007Shape/Cd:
ArrayProperty float32_t[4] .vals[1] {
arrayExtent=1
geoScope=fvr
interpretation=rgba
isGeomParam=true
podExtent=4
podName=float32_t
}