Object
- class Varwin.Object
Bases:
objectRepresentation of a scene object.
- property InteractionBehaviour: InteractionBehaviour
Gets the interaction behavior of the object.
Example:
result = instance.InteractionBehaviour
- property MotionBehaviour: MotionBehaviour
Gets the motion behavior of the object.
Example:
result = instance.MotionBehaviour
- property PhysicsBehaviour: PhysicsBehaviour
Gets the physics behavior of the object.
Example:
result = instance.PhysicsBehaviour
- property RotateBehaviour: RotateBehaviour
Gets the rotate behavior of the object.
Example:
result = instance.RotateBehaviour
- property ScaleBehaviour: ScaleBehaviour
Gets the scale behavior of the object.
Example:
result = instance.ScaleBehaviour
- property VisualizationBehaviour: VisualizationBehaviour
Gets the visualization behavior of the object.
Example:
result = instance.VisualizationBehaviour
- property Activity: bool
Gets the active state of the object.
Example:
result = instance.Activity
- property Enabled: bool
Gets the enabled state of the object.
Example:
result = instance.Enabled
- GetName() str
Gets the name of the object.
Example:
result = instance.GetName()
- GetTypeName() str
Gets the type name of the object.
Example:
result = instance.GetTypeName()
- GetParent() Object
Gets the parent object.
- Returns:
scene object
Example:
result = instance.GetParent()
- GetDescendants() List[Object]
Gets a list of all descendant objects (children, grandchildren, etc.).
Example:
result = instance.GetDescendants()
- GetAncestry() List[Object]
Gets a list of ancestor objects (parent, grandparent, etc.).
Example:
result = instance.GetAncestry()
- Enable() None
Enables the object.
Example:
instance.Enable()
- Disable() None
Disables the object.
Example:
instance.Disable()
- Activate() None
Activate the object.
Example:
instance.Activate()
- Deactivate() None
Deactivate the object.
Example:
instance.Deactivate()
- IsActive() bool
Checks if the object is active.
Example:
result = instance.IsActive()
- IsInactive() bool
Checks if the object is inactive.
Example:
result = instance.IsInactive()
- IsEnabled() bool
Checks if the object is enabled.
Example:
result = instance.IsEnabled()
- IsDisabled() bool
Checks if the object is disabled.
Example:
result = instance.IsDisabled()