vrdParentConstraintNode

class vrdParentConstraintNode

(Inherits vrdConstraintNode)

This class gives access to an parent constraint object in VRED. An parent constraint will synchronize the transformation of a source and a target. If there are multiple sources, the transformation is calculated as the weighted average value of it.

For managing constraints and code examples see vrConstraintService.

Functions

vrdParentConstraintNode.getMaintainOffset()

Returns if the constraint maintains the offset to its sources.

Returns:True if constraint maintains the offset, False otherwise.
Return type:bool
vrdParentConstraintNode.setMaintainOffset(value)

Sets if the constraint should maintain the offset to the sources when creating it.

Parameters:value (bool) – True if the offset shall be maintained, False otherwise.