Visual Overrides

Hi!
I’m trying to assign custom colors to Automate ResultCase using specklepy.
Any tips on that? :smile: Happy friday!

class ResultCase(AutomateBase):
    """A result case."""

    category: str
    level: ObjectResultLevel
    object_ids: List[str]
    message: Optional[str]
    metadata: Optional[Dict[str, Any]]
    visual_overrides: Optional[Dict[str, Any]]

so this is my code, I’ve got colors in hex format:

       automate_context.attach_info_to_objects(
                category=f"Building: {building_value}",
                object_ids=object_ids,  # Pass array of all object IDs for this building
                message=f"Building type: {building_value} ({len(object_ids)} objects)",
                metadata={
                    "building_value": building_value,
                    "object_count": len(object_ids),
                    "building_color": color
                },
                visual_overrides={"color": color}
            )

Apologies Daniel - its not implemented

Only gradient is a respected metadata feature

1 Like