SceneConst

Inheritance diagram of rumba.SceneConst
class SceneConst

An immutable scene node value.

This value is a scene graph, with at each node, an inherited world matrix, a visibility, an optional geometry, child nodes and arbitrary attributes.

About the visibility.

There is a difference between hidding and deactivating nodes. A SceneGraphNode node generating such Scene values might be deactivated using the inactive tag. In that case, the SceneGraphNode simply does not generate the value. The inactive tag can’t be animated. The exported geometry caches do not include the deactivated nodes.

If the SceneGraphNode is hidden using the show attribute, the Scene value is generated, but with a show attribute at false. The Scene inherited visibility can be queried using the Scene’s traversal. The visibility can be animated. The exported geometry caches include the geometries at every frames, no matter the visibility state.

Constructors

__init__

Value(: bool) -> None

Methods

geometry()

Get the node geometry.

has_geometry()

Returns true if this node has a geometry.

matrix()

Returns the node transform.

name()

Returns the node name.

read_attributes()

Return a read-only attribute iteration.

read_children(children_only, shapes_only)

Get the scene traversal.