rerun icon indicating copy to clipboard operation
rerun copied to clipboard

Document how to change visibility per entity basis in blueprint

Open NickLaurenson-Visionick opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe.

Currently it's not possible to set the visibility per entity in the python blueprint API. The current workaround is to use the per view content keyword to remove the data from the view.

Describe the solution you'd like

Maybe add a visibility keyword in the View API

Describe alternatives you've considered

Additional context

Mimic this functionnality from the UI: image

NickLaurenson-Visionick avatar Sep 03 '24 10:09 NickLaurenson-Visionick

Associated discord thread https://discord.com/channels/1062300748202921994/1280068537666240584/1280068537666240584

Overrides of (individual) visibility is already possible, but slightly awkward and not documented:

import rerun as rr
import rerun.blueprint as rrb

rr.init(
    "rerun_example_visibility_via_blueprint",
    spawn=True,
    default_blueprint=rrb.Spatial3DView(
        overrides={"points": [rrb.components.Visible(False)]}
    ),
)
rr.log("points", rr.Points3D([[0, 0, 0], [1, 1, 1]]))

Should document this and make it a bit more approachable maybe

Note that this does not propagate recursively. Recusive visibility propagation is a special case in the viewer right now.

Wumpf avatar Sep 09 '24 07:09 Wumpf

Ideally, we could also set the default visibility during logging. Currently I'm logging many entity paths, and have to manually click 20+ times to hide the stuff I might want to look at on demand, but usually needs to be hidden.

kabouzeid avatar Nov 21 '24 15:11 kabouzeid