{% set asset_binding = asset_image_bindings.get(asset.id) or {} %} {% set bound_ref = asset_binding.get('reference_id', '') %} {% set bound_pin = asset_binding.get('pin') %} {% set bound_ref_item = (creative_references | selectattr('id', 'equalto', bound_ref) | list | first) if bound_ref else None %}