Use atlas cues for exact Krea2 POV routes

This commit is contained in:
2026-06-30 21:11:26 +02:00
parent 3832044256
commit 4689cc7942
5 changed files with 215 additions and 8 deletions
+27
View File
@@ -717,6 +717,26 @@ def _axis_values_with_krea2_variant_keys(
return merged
def _axis_values_with_hardcore_route_metadata(
axis_values: dict[str, Any],
*,
action_family: str,
position_family: str,
position_key: str,
position_keys: list[str],
) -> dict[str, Any]:
merged = dict(axis_values)
if action_family:
merged["action_family"] = action_family
if position_family:
merged["position_family"] = position_family
if position_key:
merged["position_key"] = position_key
if position_keys:
merged["position_keys"] = [str(key) for key in position_keys if str(key).strip()]
return merged
def build_hardcore_position_pool_json(
hardcore_position_config: str | dict[str, Any] | None = "",
combine_mode: str = "replace",
@@ -2473,6 +2493,13 @@ def _build_custom_row(
position_keys = list(action_route.position_keys)
position_key = action_route.position_key
action_family = action_route.action_family
item_axis_values = _axis_values_with_hardcore_route_metadata(
item_axis_values,
action_family=action_family,
position_family=position_family,
position_key=position_key,
position_keys=position_keys,
)
text_fields = _row_text_fields(category, subcategory, item, style_config)
assembly_request = row_assembly_policy.CustomRowAssemblyRequest(