SceneAsset#

class gs_nyx.nyx_py_sdk.SceneAsset#

Bases: object

Top-level scene container holding all instances, lights, cameras, environment maps, animations and light fields.

Constructors

SceneAsset()

Construct an empty scene using the SDK’s default allocator.

Methods

animation_resize

Resize the animation array to the given length.

animation_size

Return the number of animation entries.

camera_resize

Resize the camera array to the given length.

camera_size

Return the number of camera entries.

env_map_resize

Resize the env_map array to the given length.

env_map_size

Return the number of env_map entries.

get_animation

Return the animation at the given index.

get_camera

Return the camera at the given index.

get_env_map

Return the env_map at the given index.

get_instance

Return the instance at the given index.

get_light

Return the light at the given index.

get_light_field

Return the light_field at the given index.

instance_resize

Resize the instance array to the given length.

instance_size

Return the number of instance entries.

light_field_resize

Resize the light_field array to the given length.

light_field_size

Return the number of light_field entries.

light_resize

Resize the light array to the given length.

light_size

Return the number of light entries.

set_animation

Replace the animation at the given index.

set_camera

Replace the camera at the given index.

set_env_map

Replace the env_map at the given index.

set_instance

Replace the instance at the given index.

set_light

Replace the light at the given index.

set_light_field

Replace the light_field at the given index.

Attributes

rootFolder

Root folder used to resolve relative asset paths within the scene.

version

Scene file format version.