Skip to content

scene.block_model

4 functions / 0 types

Index

FunctionDescription
getRead the current scene value, including ephemeral edits.
inspect_leafReads an element of this node’s block model component. Values that are still loading are reported in missing_attributes.
removeRemove this component without changing the node’s other component types.
setReplace 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 | None

Read 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.LeafInfo

Reads 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) -> None

Remove 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
) -> None

Replace 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.