vrdCameraTrackNode

class vrdCameraTrackNode

(Inherits vrdNode)

This class represents a camera track node.

These nodes exist only in the internal scene graph of the camera module and not in the regular scene graph. Camera track nodes are created by the camera service: vrCameraService.createCameraTrack(name, cameraNode).

Camera tracks created by the camera service are of type ‘Regular’ and have vrdViewpointNodes as children. vrdViewpointNodes can individually override the settings set here in the camera track.

Functions

vrdCameraTrackNode.getFadeInDuration()

Returns the fade in duration of the camera track.

Returns:The fade in duration in seconds.
Return type:float
vrdCameraTrackNode.getPauseDuration()

Returns the pause duration of the camera track.

Returns:The pause duration in seconds.
Return type:float
vrdCameraTrackNode.getPlaying()

Returns the playback state of the camera track.

Returns:The playback state of the camera track.
Return type:bool
vrdCameraTrackNode.getTransitionDuration()

Returns the transition duration of the camera track.

Returns:The transition duration in seconds.
Return type:float
vrdCameraTrackNode.getType()

Returns the type of the camera track.

Possible types are Regular, RenderQueue and VariantSet. RenderQueue and VariantSet tracks are internally created nodes and should not be modified. Camera tracks created by the camera service are always of type ‘Regular’.

Returns:The camera track type.
Return type:vrCameraTypes.CameraTrackType
vrdCameraTrackNode.getViewpoint(index)

Returns a viewpoint node by index.

Parameters:index (integer) – The index of the viewpoint node.
Returns:The viewpoint node. Can be Null if the index was invalid.
Return type:vrdViewpointNode
vrdCameraTrackNode.getViewpointCount()

Returns the number of viewpoints belonging to this camera track node.

Returns:The number of viewpoints.
Return type:integer
vrdCameraTrackNode.getViewpoints()

Returns all viewpoints belonging to this camera track node.

This is a convenience function that collects all viewpoint children of the camera track.

Returns:The list of viewpoints.
Return type:List[vrdViewpointNode]
vrdCameraTrackNode.isRenderQueueCameraTrack()

Check if the camera track is of type RenderQueue.

Returns:True if the type is RenderQueue, False otherwise.
Return type:bool
vrdCameraTrackNode.isVariantSetCameraTrack()

Check if the camera track is of type VariantSet.

Returns:True if the type is VariantSet, False otherwise.
Return type:bool
vrdCameraTrackNode.setFadeInDuration(duration)

Sets the fade in duration of the camera track.

Parameters:duration (float) – The fade in duration in seconds.
vrdCameraTrackNode.setPauseDuration(duration)

Sets the pause duration of the camera track.

Parameters:duration (float) – The pause duration in seconds.
vrdCameraTrackNode.setPlaying(playing)

Start / stop playback of the camera track.

Parameters:playing (bool) – True to start playback, False to stop it.
vrdCameraTrackNode.setTransitionDuration(duration)

Sets the transition duration of the camera track.

Parameters:duration (float) – The transition duration in seconds.