DAZ Script | |
---|---|
void | aimAt ( DzVec3 pos ) |
void | frame ( DzBox3 box, Number aspect ) |
Number | getFieldOfView () |
DzVec3 | getFocalPoint () |
DzLight | getHeadlight () |
Boolean | isViewCamera () |
void | reset () |
Boolean | shouldDoHeadLight ( Boolean hasLights, Boolean isRender ) |
void | updateDimensions ( CameraDimension anchor ) |
void | aspectHeightChanged ( Number height ) |
void | aspectRatioChanged () |
void | aspectWidthChanged ( Number width ) |
void | dimensionsChanged () |
void | focalDistanceChanged ( DzTimeRange range ) |
void | focalLengthChanged ( DzTimeRange range ) |
void | frameWidthChanged ( Number size ) |
void | headlightModeChanged () |
void | headlightOffsetChanged () |
void | pixelDimensionsChanged () |
void | pixelsHeightChanged ( Number height ) |
void | pixelsWidthChanged ( Number width ) |
void | projectionChanged () |
void | proportionsConstrainedChanged ( Boolean yesNo ) |
void | useLocalDimensionsChanged ( Boolean yesNo ) |
TODO: Add detailed description.
The dimensions of a camera.
Since:
—–
The different types of camera. Each has its own default parameters which it resets to and are either orthogonal or perspective by definition.
—–
The modes of the headlight for this camera.
Since:
Holds the aspect height of this camera.
Since:
Holds the aspect ratio of this camera (w / h).
See Also:
Since:
Holds the aspect width of this camera.
Since:
Holds the distance of the far clipping plane from this camera. (Read Only)
Holds the focal distance of this camera.
Holds the focal length of this camera.
Holds the width of the frame (film/sensor) of this camera (in mm). (Read Only)
Since:
Holds the mode of the headlight.
Since:
Holds the relative offset of the headlight from this camera.
Since:
Holds the distance of the near clipping plane from this camera. (Read Only)
Holds the pixels height of this camera.
Since:
Holds the pixels width of this camera.
Since:
Boolean : proportionsConstrained
Holds whether or not the proportions of this camera is constrained.
Since:
Holds the type of this camera. (Read Only)
Holds whether or not to use the local dimensions of this camera.
Since:
Rotates this camera and adjusts its focal distance so that its focal point is at the given point.
Parameter(s):
void : frame( DzBox3 box, Number aspect )
Translates this camera so that its view frames the given box, and sets this camera's focal point to the center of the box, given the aspect ratio of the current view (w / h)
Parameter(s):
Number : getFieldOfView()
Return Value:
Attention:
angle = 2 * (arctan(frameWidth)/(2 * focalLength))
The aspect of the frame can be manipulated by the user. Therefore, calculating the vertical and/or diagonal FOV is accomplished using the aspect ratio.
See Also:
DzVec3 : getFocalPoint()
Return Value:
DzLight : getHeadlight()
Return Value:
Boolean : isViewCamera()
Return Value:
true
if this is a non-animatable view camera, otherwise false
.void : reset()
Resets this camera viewing parameters to defaults.
Boolean : shouldDoHeadLight( Boolean hasLights, Boolean isRender )
Parameter(s):
Return Value:
true
if the headlight should contribute light to the scene, otherwise false
.Since:
void : updateDimensions( CameraDimension anchor )
Updates the other dimensions given an anchor dimension.
Parameter(s):
void : aspectHeightChanged( Number height )
Signature:“aspectHeightChanged(float)”
Emitted when the aspect height dimension of this camera changes.
void : aspectRatioChanged()
Signature:“aspectRatioChanged()”
Emitted when this camera's aspect ratio changes.
void : aspectWidthChanged( Number width )
Signature:“aspectWidthChanged(float)”
Emitted when the aspect width dimension of this camera changes.
void : dimensionsChanged()
Signature:“dimensionsChanged()”
Emitted when any of the local dimensions of this camera change.
void : focalDistanceChanged( DzTimeRange range )
Signature:“focalDistanceChanged(const DzTimeRange&)”
Emitted when the focal distance channel changes.
Parameter(s):
void : focalLengthChanged( DzTimeRange range )
Signature:“focalLengthChanged(const DzTimeRange&)”
Emitted when the focal length channel changes.
Parameter(s):
void : frameWidthChanged( Number size )
Signature:“frameWidthChanged(float)”
Emitted when the frame width of this camera changes.
void : headlightModeChanged()
Signature:“headlightModeChanged()”
Emitted when headlight mode of this camera changes.
void : headlightOffsetChanged()
Signature:“headlightOffsetChanged()”
Emitted when headlight offset of this camera changes.
void : pixelDimensionsChanged()
Signature:“pixelDimensionsChanged()”
Emitted when the local pixel dimensions of this camera change.
void : pixelsHeightChanged( Number height )
Signature:“pixelsHeightChanged(int)”
Emitted when the pixel height dimension of this camera changes.
void : pixelsWidthChanged( Number width )
Signature:“pixelsWidthChanged(int)”
Emitted when the pixel width dimension of this camera changes.
void : projectionChanged()
Signature:“projectionChanged()”
Emitted when projection of this camera changes and its view must be redrawn.
void : proportionsConstrainedChanged( Boolean yesNo )
Signature:“proportionsConstrainedChanged(bool)”
Emitted when the option for whether or not to constrain proportions of the local dimensions of this camera changes.
void : useLocalDimensionsChanged( Boolean yesNo )
Signature:“aspectRatioChanged(bool)”
Emitted when the option for whether or not to use the local dimensions of this camera changes.