Skip to content

Inspection queries ​

Connect with Workspace RPC first. The queries below read that GUI or headless instance's scene.

List and inspect objects ​

ws.list_objects() returns summaries with a handle, name and canonical class name. Use the handle with object_details for hierarchy, status and I/O information.

Save this complete script as inspect_object.py:

python
from flarelive_client import connect

OBJECT_PATH = "p600/core/info"  # replace with your object's hierarchy path

with connect() as client:
    ws = client.workspace
    obj = ws.find_scene_object(OBJECT_PATH)
    details = ws.object_details(obj)
    print("Name:", details.name)
    print("Type:", details.class_info.canonical_name)
    print("Path:", details.path)
    print("Parent:", details.parent)
    print("Status:", details.status_description)
    print("Enabled / visible:", details.enabled, details.visible)
    print("Input:", details.input_dof, details.input_description)
    print("Output:", details.output_dof, details.output_description)

    # Read property structure and values in one request.
    snapshot = ws.object_snapshot(obj)
    def show(node):
        if node.value_available:
            print(node.path, "=", node.value)
        for child in node.children:
            show(child)
        if node.children_truncated:
            print(node.path, "(more children available)")
    show(snapshot.properties)

Set OBJECT_PATH to an actual hierarchy path, then run:

sh
python inspect_object.py

Run it in the environment where you installed flarelive-client. Copy object path in a Hierarchy row's menu gives its exact path.

Read a coherent property snapshot ​

object_snapshot(obj) reads object details, property structure and values together. Each node contains:

FieldMeaning
path, nameAPI path and field name.
metadataType, enum choices, semantic hints, editability and Show If visibility.
value_availableWhether this node has a readable scalar/reference value.
valueThe value, including None for a valid empty reference.
childrenComposite/list children included in this response.
children_truncatedMore children exist than the requested depth/item limit includes.
value_error, value_messageWhy an individual value could not be read.

For a large object, request a group such as ws.object_snapshot(obj, "rendering", depth=3). Query omitted subtrees separately. Each snapshot is internally consistent; multiple requests may observe different simulation times.

Use get_property(obj, path) for one value and property_metadata(obj, path) for one field's metadata. Property conventions shows enum labels, flags and reference values.

Find compatible references ​

Given a mesh shape handle named shape:

python
reference = ws.describe_reference(shape, "mesh")
print("Current:", reference.current)
print("Can edit now:", reference.editable)
print("Allowed types:", reference.constraint.compatible_default_types)
for candidate in reference.candidates:
    print(candidate.handle, candidate.name)

Pass a candidate's handle to set_property(shape, "mesh", candidate.handle). To read an existing assignment, use get_property and then object_details on the returned handle. None is an empty reference.

If next_offset is present, call describe_reference again with that offset to read the next page. Candidates account for the property's constraints in the current scene.

Understand a type before creating it ​

python
schema = ws.describe_type("simexp.core.camera")
print(schema.class_info.display_name)
for child in schema.properties.children:
    print(child.path, child.value, child.metadata.value_type)

describe_type returns a new object's default property layout without adding an object to the scene or changing history. Use it for available settings, defaults, enum choices and list-item layouts. Inspect an actual object to see imported data, populated lists and parent-dependent sensor dimensions.

Query summary ​

QueryUse it for
ws.object_typesList loaded object types and categories.
describe_type(type_name)Read a type's initial schema.
list_objects()List current object summaries.
object_details(obj)Read parent/path, status, effective enable/visibility, I/O and capabilities.
describe_properties(obj, path, depth, max_items)Read structure and metadata.
object_snapshot(obj, path, depth, max_items)Read structure, details and values together.
describe_reference(obj, path, offset, limit)Find compatible reference candidates.
get_object_bounds([obj], include_children=True)Obtain combined finite world-space bounds, or None if unavailable.

Resolve handles again after Open/New, Begin/End Experiment, Initialize or Clear, because those actions can switch worlds. Top-level scene objects have parent=None; the internal scene root is omitted from the public API.

An I/O dimension of −1 means variable length. Query initialized, correctly parented sensors for their actual channel layout. Capability names identify available interfaces; methods such as bounds queries can still return None when that object has no data to report.