AlembicArchiveReader.kl¶
Types¶
AlembicLockBracket (struct)¶
This lock bracket is required when accessing Alembic, since files using HDF5 don’t support multithreading.
Members¶
Ref<AlembicLock> | alembicLock |
Methods¶
AlembicLockBracket ( in AlembicLockBracket other ) | |
AlembicLockBracket ( in Ref<AlembicArchiveReader> archiveReader ) | |
AlembicLockBracket () | |
AlembicLockBracket | clone ? () |
~AlembicLockBracket () |
AlembicArchiveReader (object)¶
The AlembicArchiveReader is a wrapper for the AlembicIArchive. It provides access to the higher level reader objects such as the AlembicXformReader, for example.
/*
** Example: AlembicArchiveReader
*/
require AlembicWrapper;
require FileIO;
operator entry() {
FilePath path = FilePath("${FABRIC_SCENE_GRAPH_DIR}/Python/Apps/Resources/Alembic/face.abc").expandEnvVars();
AlembicArchiveReader archive(path.string());
report(archive.valid());
report(archive.getPath());
report(archive.getTimeRange());
String meshes[] = archive.getPathsOfType('PolyMesh');
for(Size i=0;i<meshes.size();i++)
report(meshes[i]);
}
/*
** Output:
true
D:\fabric\release/Python/Apps/Resources/Alembic/face.abc
{x:+10.56666,y:+21.33333}
/Mesh_T_Teeth_Pc-Sd1_Xfo/Mesh_T_Teeth_Pc-Sd1_
/Mesh_B_Teeth_Pc-Sd1_Xfo/Mesh_B_Teeth_Pc-Sd1_
/Mesh_X_Head_Pc-Sd1_Xfo/Mesh_X_Head_Pc-Sd1_
/Mesh_L_Eye_Pc-Sd1_Xfo/Mesh_L_Eye_Pc-Sd1_
/Mesh_R_Eye_Pc-Sd1_Xfo/Mesh_R_Eye_Pc-Sd1_
*/
Methods¶
Functions¶
GetIPropertyKLType¶
Type GetIPropertyKLType ( in Ref<AlembicDataType> dataType )
CreateIProperty¶
CreateIProperty ( in Ref<AlembicICompoundProperty> parent, in Ref<AlembicPropertyHeader> header, io AlembicIScalarProperty scalarProperty, io AlembicIArrayProperty arrayProperty, io AlembicICompoundProperty compoundProperty )
Helper for creating the right property type based on the header