rerun-io / rerun

Visualize streams of multimodal data. Fast, easy to use, and simple to integrate. Built in Rust using egui.
https://rerun.io/
Apache License 2.0
6.27k stars 296 forks source link

API to load and send .rbl file from code #6103

Open jleibs opened 5 months ago

jleibs commented 5 months ago

To work around situations where blueprint APIs don't yet cover features, users can still manually edit blueprint in the viewer and save them. Unfortunately these blueprints still need to be distributed and manually loaded.

We should add a logging API that opens and existing .rbl file, and sends it to the viewer.

for example:

blueprint = rrb.Blueprint.from_file("my_blueprint.rbl")
rr.send_blueprint(blueprint)
jleibs commented 1 week ago

This actually works using the log_file API call, but could use some more documentation and an example.