InstanceAsset#

class gs_nyx.nyx_py_sdk.InstanceAsset#

Bases: object

An instance placed in the scene. The active fields depend on ‘type’; type-specific accessors raise RuntimeError when used on the wrong type.

Constructors

InstanceAsset()

Construct a default-initialized instance asset.

Attributes

convertAxis

If True, convert from Z-up source data to the engine's Y-up convention on import.

dynamicMesh_dynamicConnectivity

If True, the dynamic mesh connectivity (triangle indices) can change at runtime, it's used for surfaces that are remeshed every frame.

dynamicMesh_numTriangles

Number of triangles in the dynamic mesh buffer.

dynamicMesh_numVertices

Number of vertices in the dynamic mesh buffer.

enabled

If False, the instance is excluded from rendering.

matOverride

Per-instance material override.

mesh_uri

Path to the mesh file.

name

Human-readable name of the instance.

position

World-space position of the instance.

primitive_type

Shape of the 3D primitive.

rotation

World-space rotation of the instance.

scale

World-space scale of the instance.

smooth

If True, generate smooth shading normals on import.

subscene_uri

Path to the referenced scene file.

type

Kind of instance; selects which type-specific fields are valid.

uuid

Unique identifier of the instance.