scene.block_model
4 functions / 0 types
Index
| Function | Description |
|---|---|
| get | Read the current scene value, including ephemeral edits. |
| inspect_leaf | Reads an element of this node’s block model component. Values that are still loading are reported in missing_attributes. |
| remove | Remove this component without changing the node’s other component types. |
| set | Replace this component without changing the node’s other component types. |
get
def get(
*,
node: types.scene.Node,
_transaction_id: str | None = None
) -> types.scene.BlockModel | NoneRead the current scene value, including ephemeral edits.
Returns BlockModel | None.
node : Node
The scene node, rather than an internal render entity.
_transaction_id optional : str | None
Transaction to join. Omit to submit without an explicit transaction. Defaults to None.
inspect_leaf
def inspect_leaf(
*,
node: types.scene.Node,
leaf: types.scene.LeafDescription,
_transaction_id: str | None = None
) -> types.scene.LeafInfoReads an element of this node’s block model component. Values that are still loading are reported in missing_attributes.
Returns LeafInfo.
node : Node
The scene node containing the component.
leaf : LeafDescription
The element reported by a scene hit.
_transaction_id optional : str | None
Transaction to join. Omit to submit without an explicit transaction. Defaults to None.
remove
def remove(*, node: types.scene.Node, _transaction_id: str | None = None) -> NoneRemove this component without changing the node’s other component types.
Returns None.
node : Node
The scene node, rather than an internal render entity.
_transaction_id optional : str | None
Transaction to join. Omit to submit without an explicit transaction. Defaults to None.
set
def set(
*,
node: types.scene.Node,
block_model: types.scene.BlockModel,
_transaction_id: str | None = None
) -> NoneReplace this component without changing the node’s other component types.
Returns None.
node : Node
The scene node, rather than an internal render entity.
block_model : BlockModel
The complete replacement value; optional fields use their component defaults.
_transaction_id optional : str | None
Transaction to join. Omit to submit without an explicit transaction. Defaults to None.