Simulation Instruments

Home›All functions›Scene

Scene

Simulation Instrument Studio 1

scene_add

Simulation Instrument Studio 1

Definition

scene_id = scene_add(x, y, width, height)

Remarks

Add a scene.

Example

No sample instrument calls this yet.

scene_add()
Photo slot: shots/scene_add.png

scene_camera_add

Simulation Instrument Studio 1

Definition

camera_id = scene_camera_add(scene_id)

Remarks

Add a camera.

Example

No sample instrument calls this yet.

scene_camera_add()
Photo slot: shots/scene_camera_add.png

scene_light_add

Simulation Instrument Studio 1

Definition

light_id = scene_light_add(scene_id)

Remarks

Add a light.

Example

No sample instrument calls this yet.

scene_light_add()
Photo slot: shots/scene_light_add.png

scene_mesh_add

Simulation Instrument Studio 1

Definition

mesh_id = scene_mesh_add(scene_id, resource)

Remarks

Create a new mesh from .stl or .obj file.

Example

No sample instrument calls this yet.

scene_mesh_add()
Photo slot: shots/scene_mesh_add.png

scene_mesh_set_material

Simulation Instrument Studio 1

Definition

scene_mesh_set_material(scene_id, material_id)

Remarks

Apply a material to a mesh.

Parameters

NameDescription
scene_idId returned by the call that created the object.
material_idId returned by the call that created the object.

Example

No sample instrument calls this yet.

scene_mesh_set_material(scene_id, material_id)
Photo slot: shots/scene_mesh_set_material.png

scene_material_add

Simulation Instrument Studio 1

Definition

material_id = scene_material_add(scene_id, resource)

Remarks

Create a new material from PNG file or canvas.

Example

No sample instrument calls this yet.

scene_material_add()
Photo slot: shots/scene_material_add.png

scene_node_add

Simulation Instrument Studio 1

Definition

scene_node_id = scene_node_add(scene_id, scene_object_id)

Remarks

Create a scene node.

Example

No sample instrument calls this yet.

scene_node_add()
Photo slot: shots/scene_node_add.png

scene_node_move

Simulation Instrument Studio 1

Definition

scene_node_move(scene_node_id, x, y, z)

Remarks

Move a scene node.

Parameters

NameDescription
scene_node_idId returned by the call that created the object.
xLeft position in instrument pixels.
yTop position in instrument pixels.
zHeight of the node in the scene.

Example

No sample instrument calls this yet.

scene_node_move(scene_node_id, x, y, z)
Photo slot: shots/scene_node_move.png

scene_node_scale

Simulation Instrument Studio 1

Definition

scene_node_scale(scene_node_id, x, y, z)

Remarks

Scale a scene node.

Parameters

NameDescription
scene_node_idId returned by the call that created the object.
xLeft position in instrument pixels.
yTop position in instrument pixels.
zHeight of the node in the scene.

Example

No sample instrument calls this yet.

scene_node_scale(scene_node_id, x, y, z)
Photo slot: shots/scene_node_scale.png

scene_node_rotate

Simulation Instrument Studio 1

Definition

scene_node_rotate(scene_node_id, x, y, z)

Remarks

Rotate a scene node.

Parameters

NameDescription
scene_node_idId returned by the call that created the object.
xLeft position in instrument pixels.
yTop position in instrument pixels.
zHeight of the node in the scene.

Example

No sample instrument calls this yet.

scene_node_rotate(scene_node_id, x, y, z)
Photo slot: shots/scene_node_rotate.png

scene_node_attach

Simulation Instrument Studio 1

Definition

scene_node_attach(scene_node_id, scene_object_id)

Remarks

Attach a light or mesh to the node.

Parameters

NameDescription
scene_node_idId returned by the call that created the object.
scene_object_idId returned by the call that created the object.

Example

No sample instrument calls this yet.

scene_node_attach(scene_node_id, scene_object_id)
Photo slot: shots/scene_node_attach.png

scene_viewport_add

Simulation Instrument Studio 1

Definition

scene_viewport_add(scene_node_id, camera_id)

Remarks

Create a viewport.

Parameters

NameDescription
scene_node_idId returned by the call that created the object.
camera_idId returned by the call that created the object.

Example

No sample instrument calls this yet.

scene_viewport_add(scene_node_id, camera_id)
Photo slot: shots/scene_viewport_add.png