AlembicCameraWriter (object)¶
The AlembicCameraWriter specializes the AlembicObjectWriter interface for writing AlembicOCamera data. It can be created using the AlembicArchiveWriter.addCamera methods.
/*
** Example: AlembicCameraWriter
*/
require AlembicWrapper;
require FileIO;
operator entry() {
FilePath path = FilePath('${TEMP}/camera.abc').expandEnvVars();
AlembicArchiveWriter archive(path.string());
AlembicXformWriter xfo = archive.addXform('/xfo', Alembic_kConstantTimeSampling);
AlembicCameraWriter cam = archive.addCamera('/xfo/cam', Alembic_kConstantTimeSampling);
xfo.writeSample(Mat44());
cam.setFocalLength(5.4);
cam.setNearClippingPlane(0.1);
cam.setFarClippingPlane(10.0);
cam.writeSample();
archive.reset();
report(path.exists());
report('Alembic file created: '+path.string());
}
/*
** Output:
true
Alembic file created: R:\Temp/camera.abc
*/
Methods¶
Methods in detail¶
AlembicCameraWriter ( in AlembicCameraWriter other )
copy constructor
default constructor
AlembicCameraWriter AlembicCameraWriter.clone? ()
clone method
Float64 AlembicCameraWriter.getFStop? ()
returns the current sample’s fStop value
Float64 AlembicCameraWriter.getFarClippingPlane? ()
returns the current sample’s farClippingPlane value
Float64 AlembicCameraWriter.getFocalLength? ()
returns the current sample’s focalLength value
Float64 AlembicCameraWriter.getFocusDistance? ()
returns the current sample’s focusDistance value
Float64 AlembicCameraWriter.getHorizontalAperture? ()
returns the current sample’s horizontalAperture value
Float64 AlembicCameraWriter.getHorizontalFilmOffset? ()
returns the current sample’s horizontalFilmOffset value
Float64 AlembicCameraWriter.getLensSqueezeRatio? ()
returns the current sample’s lensSqueezeRatio value
Float64 AlembicCameraWriter.getNearClippingPlane? ()
returns the current sample’s nearClippingPlane value
AlembicOObject AlembicCameraWriter.getOObject? ()
returns the wrapped AlembicOObject
Float64 AlembicCameraWriter.getOverScanBottom? ()
returns the current sample’s overScanBottom value
Float64 AlembicCameraWriter.getOverScanLeft? ()
returns the current sample’s overScanLeft value
Float64 AlembicCameraWriter.getOverScanRight? ()
returns the current sample’s overScanRight value
Float64 AlembicCameraWriter.getOverScanTop? ()
returns the current sample’s overScanTop value
String AlembicCameraWriter.getPath? ()
returns the full path of the wrapped AlembicOCamera
Float64 AlembicCameraWriter.getShutterClose? ()
returns the current sample’s shutterClose value
Float64 AlembicCameraWriter.getShutterOpen? ()
returns the current sample’s shutterOpen value
Float64 AlembicCameraWriter.getVerticalAperture? ()
returns the current sample’s verticalAperture value
Float64 AlembicCameraWriter.getVerticalFilmOffset? ()
returns the current sample’s verticalFilmOffset value
AlembicCameraWriter.reset! ()
clears all pointers and releases all alembic containers
AlembicCameraWriter.setFStop! ( in Float64 value )
sets the current sample’s fStop value
AlembicCameraWriter.setFarClippingPlane! ( in Float64 value )
sets the current sample’s farClippingPlane value
AlembicCameraWriter.setFocalLength! ( in Float64 value )
sets the current sample’s focalLength value
AlembicCameraWriter.setFocusDistance! ( in Float64 value )
sets the current sample’s focusDistance value
AlembicCameraWriter.setHorizontalAperture! ( in Float64 value )
sets the current sample’s horizontalAperture value
AlembicCameraWriter.setHorizontalFilmOffset! ( in Float64 value )
sets the current sample’s horizontalFilmOffset value
AlembicCameraWriter.setLensSqueezeRatio! ( in Float64 value )
sets the current sample’s lensSqueezeRatio value
AlembicCameraWriter.setNearClippingPlane! ( in Float64 value )
sets the current sample’s nearClippingPlane value
AlembicCameraWriter.setOverScanBottom! ( in Float64 value )
sets the current sample’s overScanBottom value
AlembicCameraWriter.setOverScanLeft! ( in Float64 value )
sets the current sample’s overScanLeft value
AlembicCameraWriter.setOverScanRight! ( in Float64 value )
sets the current sample’s overScanRight value
AlembicCameraWriter.setOverScanTop! ( in Float64 value )
sets the current sample’s overScanTop value
AlembicCameraWriter.setShutterClose! ( in Float64 value )
sets the current sample’s shutterClose value
AlembicCameraWriter.setShutterOpen! ( in Float64 value )
sets the current sample’s shutterOpen value
AlembicCameraWriter.setVerticalAperture! ( in Float64 value )
sets the current sample’s verticalAperture value
AlembicCameraWriter.setVerticalFilmOffset! ( in Float64 value )
sets the current sample’s verticalFilmOffset value
Boolean AlembicCameraWriter.valid? ()
returns true if this writer wraps a valid AlembicOCamera
Boolean AlembicCameraWriter.writeSample! ()
write a single sample into the AlembicOCamera