class Scene

A 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.

More methods to come.

Scene()

Create a Scene value

name() str

Returns the node name.

matrix() M44d

Returns the node transform.

set_name(name: str)

Set the node name.

set_matrix(m: M44d)

Set the node transform.

add_child(child: Scene)

Adds the given child scene node as a child.