AlembicArchiveWriter.kl

Types

AlembicArchiveWriter (object)

The AlembicArchiveWriter is a wrapper for the AlembicOArchive. It provides access to the higher level writer objects such as the AlembicXformWriter, for example.

/*
** Example: AlembicArchiveWriter
*/

require AlembicWrapper;
require FileIO;

operator entry() {
  
  FilePath path = FilePath("${TEMP}/archivewriter.abc").expandEnvVars();

  AlembicArchiveWriter archive(path.string());

  AlembicXformWriter xformA = archive.addXform('/xfoA', Alembic_kConstantTimeSampling);
  AlembicXformWriter xformB = archive.addXform('/xfoA/xfoB', Alembic_kConstantTimeSampling);

  xformA.writeSample(Mat44());
  xformB.writeSample(Mat44());

  archive.reset();

  report(path.exists());
  report('Alembic file written: '+path.string());
}

/*
** Output:

true
Alembic file written: R:\Temp/archivewriter.abc

*/

Methods

  AlembicArchiveWriter ( in AlembicArchiveWriter other )
  AlembicArchiveWriter ( in String fileName )
  AlembicArchiveWriter ()
AlembicCameraWriter addCamera ! ( in Ref<AlembicObjectWriter> parentWriter, in String childPath, in SInt32 timeSampling )
AlembicCameraWriter addCamera ! ( in String childPath, in SInt32 timeSampling )
AlembicCameraWriter addCamera ! ( in String parentPath, in String childPath, in SInt32 timeSampling )
AlembicCurvesWriter addCurves ! ( in Ref<AlembicObjectWriter> parentWriter, in String childPath, in SInt32 timeSampling )
AlembicCurvesWriter addCurves ! ( in String childPath, in SInt32 timeSampling )
AlembicCurvesWriter addCurves ! ( in String parentPath, in String childPath, in SInt32 timeSampling )
AlembicPointsWriter addPoints ! ( in Ref<AlembicObjectWriter> parentWriter, in String childPath, in SInt32 timeSampling )
AlembicPointsWriter addPoints ! ( in String childPath, in SInt32 timeSampling )
AlembicPointsWriter addPoints ! ( in String parentPath, in String childPath, in SInt32 timeSampling )
AlembicPolyMeshWriter addPolyMesh ! ( in Ref<AlembicObjectWriter> parentWriter, in String childPath, in SInt32 timeSampling )
AlembicPolyMeshWriter addPolyMesh ! ( in String childPath, in SInt32 timeSampling )
AlembicPolyMeshWriter addPolyMesh ! ( in String parentPath, in String childPath, in SInt32 timeSampling )
AlembicPropertyWriter addProperty ! ( in String path, in String key, in AlembicPropertyType propertyType, in AlembicPOD pod, in UInt32 extent, in SInt32 timeSampling )
AlembicSubDWriter addSubD ! ( in Ref<AlembicObjectWriter> parentWriter, in String childPath, in SInt32 timeSampling )
AlembicSubDWriter addSubD ! ( in String childPath, in SInt32 timeSampling )
AlembicSubDWriter addSubD ! ( in String parentPath, in String childPath, in SInt32 timeSampling )
SInt32 addTimeSampling ! ( in Float64 times[] )
AlembicXformWriter addXform ! ( in Ref<AlembicObjectWriter> parentWriter, in String childPath, in SInt32 timeSampling )
AlembicXformWriter addXform ! ( in String childPath, in SInt32 timeSampling )
AlembicXformWriter addXform ! ( in String parentPath, in String childPath, in SInt32 timeSampling )
AlembicArchiveWriter clone ? ()
  closeArchive ! ( in Boolean close )
String getMetaData ! ( in String path, in String key )
String[] getMetaDataKeys ! ( in String path )
String getPath ? ()
AlembicOObject getTop ? ()
  informOfSampleArrayStore ! ( in Boolean succeeded[] )
  informOfSampleStore ! ( in Boolean succeeded )
  reset ! ()
  setMetaData ! ( in String path, in String key, in String value )
Boolean valid ? ()