scene namespace
Visual representation of a space.
Scene
methods allow you to
- Create items
- Create
Scene
properties - Get items placed in the
Scene
Methods
create_camera | (self, pos: Vector3) -> CameraItem |
Creates a new CameraItem in this |
|
create_capsule | (self, pos: Vector3) -> Capsule |
Creates a new Capsule in this |
|
create_cone | (self, pos: Vector3) -> Cone |
Creates a new Cone in this |
|
create_cone_frustum | (self, pos: Vector3) -> ConeFrustum |
Creates a new ConeFrustum in this |
|
create_cuboid | (self, pos: Vector3) -> Cuboid |
Creates a new Cuboid in this |
|
create_cylinder | (self, pos: Vector3) -> Cylinder |
Creates a new Cylinder in this |
|
create_ellipsoid | (self, pos: Vector3) -> Ellipsoid |
Creates a new Ellipsoid in this |
|
create_frustum | (self, pos: Vector3) -> Frustum |
Creates a new Frustum in this |
|
create_frustum4 | (self, pos: Vector3) -> Frustum4 |
Creates a new Frustum4 in this |
|
create_hemiellipsoid | (self, pos: Vector3) -> HemiEllipsoid |
Creates a new HemiEllipsoid in this |
|
create_semi_torus | (self, pos: Vector3) -> SemiTorus |
Creates a new SemiTorus in this |
|
create_text | (self, pos: Vector3, text: str) -> TextItem |
Creates a TextItem in this |
|
create_text_billboard | (self, pos: Vector3) -> Cuboid |
Creates a new TextBillboard in this |
|
create_torus | (self, pos: Vector3) -> Torus |
Creates a new Torus in this |
|
create_tube | (self, pos: Vector3) -> Tube |
Creates a new Tube in this |
|
delete_items | (self) -> None |
Deletes all items in this |
|
get_item | (self, id: str) -> BaseItem |
Finds an item by its |
|
get_items | (self) -> list[BaseItem] | ||
get_property | (self, key: str) -> str |
Gets a custom property from this object. Returns |
|
on_property_changed | (self, id: str, handler: Callable[[t: str], None]) -> None |
Handles property value changes in this object. |
|
set_property | (self, key: str, value: object) -> None |
Sets a custom property to this object. |
Properties
readonly | index | int | |
readonly | name | str |