Skip to content

Can't set time range on individual entities via blueprint api #8557

Open
@Wumpf

Description

Adding this to the helix demo doesn't have any effect right now:

    blueprint = rrb.Blueprint(
        rrb.Spatial3DView(
            origin="/",
            overrides={
                "helix/structure/scaffolding/beads": [
                    rrb.VisibleTimeRange(
                        "stable_time",
                        start=rrb.TimeRangeBoundary.cursor_relative(seconds=-0.3),
                        end=rrb.TimeRangeBoundary.cursor_relative(seconds=0.3),
                    ),
                ]
            },
        ),
    )
    rr.send_blueprint(blueprint)

We store it already in the blueprint but it's stored on "recursive override path" which is a vestigue from back when we tried a model of "indidual & recursive" overrides. We dumped that idea and instead want to make overrides be path-expression enabled in the future. Individua/recursive is really only used for recursive visibility & interactivity today and we should clean up everything else. See:

Python blueprint api overrides use only the "individual" override path.

-> The fix MIGHT be as easy to change these two code paths to use "individual" instead. But a bit more looking into is needed

We also should really add a test for this - at least a release_checklist one

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions