vrdLightTransform

class vrdLightTransform

(Inherits vrdSceneObject)

This class is used to change or propagate the transformation of a light.

Functions

vrdLightTransform.applyToCamera(cameraNode)

Set the camera to the world transformation of the light.

Parameters:cameraNode (vrdCameraNode) – The camera node to which the global transformation is copied.
vrdLightTransform.setFromCamera(cameraNode)

Set the light to the world transformation of the camera.

Parameters:cameraNode (vrdCameraNode) – The camera node from which the global transformation is copied.
vrdLightTransform.setFromNodes(nodes)

Set the light to the bounding box center of a set of nodes.

Parameters:nodes (List[vrdNode]) – List of nodes from which the bounding box center is computed.