AlembicCameraReader (object)

The AlembicCameraReader specializes the AlembicObjectReader interface for reading AlembicICamera data. It can be created using the AlembicArchiveReader.getCamera method.

AlembicCameraReader AlembicCameraReader AlembicCameraReader AlembicBaseObjectReader AlembicBaseObjectReader AlembicCameraReader->AlembicBaseObjectReader AlembicObjectReader AlembicObjectReader AlembicBaseObjectReader->AlembicObjectReader

/*
** Example: AlembicCameraReader
*/

require AlembicWrapper;
require FileIO;

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

  AlembicArchiveReader archive(path.string());
  String cameraPaths[] = archive.getPathsOfType('Camera');

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

    AlembicCameraReader camera = archive.getCamera(cameraPaths[i]);
    report('samples: '+camera.getNumSamples());

    camera.readSample(2.4);
    report('focalLength: '+camera.getFocalLength());
    report('nearClippingPlane: '+camera.getNearClippingPlane());
    report('farClippingPlane: '+camera.getFarClippingPlane());
    
  }

}

/*
** Output:

samples: 1
focalLength: +8.70334680003044
nearClippingPlane: +1.0e-1
farClippingPlane: +32768.0

*/

Methods in detail

AlembicCameraReader ( in AlembicCameraReader other )

copy constructor


AlembicCameraReader ()

default constructor


AlembicCameraReader AlembicCameraReader.clone? ()

clone method


Float64 AlembicCameraReader.getFStop? ()

returns the current sample’s (interpolated) fStop value


Float64 AlembicCameraReader.getFarClippingPlane? ()

returns the current sample’s (interpolated) farClippingPlane value


Float64 AlembicCameraReader.getFieldOfView? ()

returns the current sample’s (interpolated) field of view value


Float64 AlembicCameraReader.getFocalLength? ()

returns the current sample’s (interpolated) focalLength value


Float64 AlembicCameraReader.getFocusDistance? ()

returns the current sample’s (interpolated) focusDistance value


Float64 AlembicCameraReader.getHorizontalAperture? ()

returns the current sample’s (interpolated) horizontalAperture value


Float64 AlembicCameraReader.getHorizontalFilmOffset? ()

returns the current sample’s (interpolated) horizontalFilmOffset value


Ref<AlembicIObject> AlembicCameraReader.getIObject? ()

returns the wrapped AlembicIObject


Float64 AlembicCameraReader.getLensSqueezeRatio? ()

returns the current sample’s (interpolated) lensSqueezeRatio value


Float64 AlembicCameraReader.getNearClippingPlane? ()

returns the current sample’s (interpolated) nearClippingPlane value


Float64 AlembicCameraReader.getOverScanBottom? ()

returns the current sample’s (interpolated) overScanBottom value


Float64 AlembicCameraReader.getOverScanLeft? ()

returns the current sample’s (interpolated) overScanLeft value


Float64 AlembicCameraReader.getOverScanRight? ()

returns the current sample’s (interpolated) overScanRight value


Float64 AlembicCameraReader.getOverScanTop? ()

returns the current sample’s (interpolated) overScanTop value


String AlembicCameraReader.getPath? ()

returns the full path of the wrapped AlembicICamera


AlembicCameraSample AlembicCameraReader.getSampleA? ()

returns the first sample used by this reader


AlembicCameraSample AlembicCameraReader.getSampleB? ()

returns the second sample used by this reader


AlembicICameraSchema AlembicCameraReader.getSchema? ()

returns the schema of this reader


Float64 AlembicCameraReader.getShutterClose? ()

returns the current sample’s (interpolated) shutterClose value


Float64 AlembicCameraReader.getShutterOpen? ()

returns the current sample’s (interpolated) shutterOpen value


Float64 AlembicCameraReader.getVerticalAperture? ()

returns the current sample’s (interpolated) verticalAperture value


Float64 AlembicCameraReader.getVerticalFilmOffset? ()

returns the current sample’s (interpolated) verticalFilmOffset value


AlembicCameraReader.readSample! ( in Float64 time )

reads a sample at a given time. this will properly interpolate between samples.


AlembicCameraReader.reset! ()

clears all pointers and releases all alembic containers


Boolean AlembicCameraReader.valid? ()

returns true if this reader wraps a valid AlembicICamera