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()

Home›All functions›Scene
Simulation Instrument Studio 1
Simulation Instrument Studio 1
scene_id = scene_add(x, y, width, height)
Add a scene.
No sample instrument calls this yet.
scene_add()

Simulation Instrument Studio 1
camera_id = scene_camera_add(scene_id)
Add a camera.
No sample instrument calls this yet.
scene_camera_add()

Simulation Instrument Studio 1
light_id = scene_light_add(scene_id)
Add a light.
No sample instrument calls this yet.
scene_light_add()

Simulation Instrument Studio 1
mesh_id = scene_mesh_add(scene_id, resource)
Create a new mesh from .stl or .obj file.
No sample instrument calls this yet.
scene_mesh_add()

Simulation Instrument Studio 1
scene_mesh_set_material(scene_id, material_id)
Apply a material to a mesh.
| Name | Description |
|---|---|
scene_id | Id returned by the call that created the object. |
material_id | Id returned by the call that created the object. |
No sample instrument calls this yet.
scene_mesh_set_material(scene_id, material_id)

Simulation Instrument Studio 1
material_id = scene_material_add(scene_id, resource)
Create a new material from PNG file or canvas.
No sample instrument calls this yet.
scene_material_add()

Simulation Instrument Studio 1
scene_node_id = scene_node_add(scene_id, scene_object_id)
Create a scene node.
No sample instrument calls this yet.
scene_node_add()

Simulation Instrument Studio 1
scene_node_move(scene_node_id, x, y, z)
Move a scene node.
| Name | Description |
|---|---|
scene_node_id | Id returned by the call that created the object. |
x | Left position in instrument pixels. |
y | Top position in instrument pixels. |
z | Height of the node in the scene. |
No sample instrument calls this yet.
scene_node_move(scene_node_id, x, y, z)

Simulation Instrument Studio 1
scene_node_scale(scene_node_id, x, y, z)
Scale a scene node.
| Name | Description |
|---|---|
scene_node_id | Id returned by the call that created the object. |
x | Left position in instrument pixels. |
y | Top position in instrument pixels. |
z | Height of the node in the scene. |
No sample instrument calls this yet.
scene_node_scale(scene_node_id, x, y, z)

Simulation Instrument Studio 1
scene_node_rotate(scene_node_id, x, y, z)
Rotate a scene node.
| Name | Description |
|---|---|
scene_node_id | Id returned by the call that created the object. |
x | Left position in instrument pixels. |
y | Top position in instrument pixels. |
z | Height of the node in the scene. |
No sample instrument calls this yet.
scene_node_rotate(scene_node_id, x, y, z)

Simulation Instrument Studio 1
scene_node_attach(scene_node_id, scene_object_id)
Attach a light or mesh to the node.
| Name | Description |
|---|---|
scene_node_id | Id returned by the call that created the object. |
scene_object_id | Id returned by the call that created the object. |
No sample instrument calls this yet.
scene_node_attach(scene_node_id, scene_object_id)

Simulation Instrument Studio 1
scene_viewport_add(scene_node_id, camera_id)
Create a viewport.
| Name | Description |
|---|---|
scene_node_id | Id returned by the call that created the object. |
camera_id | Id returned by the call that created the object. |
No sample instrument calls this yet.
scene_viewport_add(scene_node_id, camera_id)
