Link Search Menu Expand Document

Object Naming

The following source code was mirrored from the arena-py object_id.py example.

from arena import *

scene = Scene(host="arenaxr.org", scene="example")

@scene.run_once
def make_named_boxes():
    # create a box with a uuid generated name
    box_named_id = Box(
        object_id="box1",
    )
    scene.add_object(box_named_id)

    # create a box with the name "box1"
    box_named_uuid = Box()
    scene.add_object(box_named_uuid)

scene.run_tasks()