AlembicCurvesReader.kl

Types

AlembicCurvesReader (object)

The AlembicCurvesReader specializes the AlembicObjectReader interface for reading AlembicICurves data. It can be created using the AlembicArchiveReader.getCurves method.

/*
** Example: AlembicCurvesReader
*/

require AlembicWrapper;
require FileIO;

operator entry() {
  
  FilePath path = FilePath('${FABRIC_SCENE_GRAPH_DIR}/Python/Apps/Resources/Alembic/furmonster.abc').expandEnvVars();

  AlembicArchiveReader archive(path.string());
  String curvesPaths[] = archive.getPathsOfType('Curves');

  for(Size i=0;i<curvesPaths.size();i++) {

    AlembicCurvesReader curves = archive.getCurves(curvesPaths[i]);
    report('samples: '+curves.getNumSamples());

    Lines lines = Lines();
    curves.readSample(2.4, lines);

    report(lines.pointCount());
    report(lines.lineCount());
  }

}

/*
** Output:

samples: 1
1100000
1000000

*/

Methods

  AlembicCurvesReader ( in AlembicCurvesReader other )
  AlembicCurvesReader ()
Boolean areSelfBoundsConstant ? ()
AlembicCurvesReader clone ? ()
SInt32 getNumSamples ? ()
String getPath ? ()
AlembicICurvesSample getSampleA ? ()
AlembicICurvesSample getSampleB ? ()
AlembicICurvesSchema getSchema ? ()
Box3 getSelfBounds ! ( in Float64 time, io Boolean isConstant )
AlembicTimeSampling getTimeSampling ? ()
  readSample ! ( in Float64 time, io Curves geom )
  readSample ! ( in Float64 time, io Geometry geom )
  readSample ! ( in Float64 time, io Lines lines )
  reset ! ()
Boolean valid ? ()