ADCS.helpers.animations.godot.assets.products module

Build viewer-ready assets from the raw sources.

Each product is a recipe (inputs + parameters + code version). Its outputs go to processed/<product>/<recipe hash>/ with an asset_manifest.json; processed/current.json maps each product to its latest build, which is what the viewer reads. Building a product whose recipe hash already exists is a no-op.

ADCS.helpers.animations.godot.assets.products.build(names=None, overrides=None, sources=None, log=<built-in function print>)[source]

Fetch inputs as needed and build products.

Parameters:
  • names (List[str] | None) – Products to build (default: all).

  • overrides (Dict[str, Dict[str, Any]] | None) – Per-product parameter overrides, e.g. {"earth_day": {"face_size": 2048}}.

  • sources (Dict[str, Dict[str, Any]] | None) – Source table (default: packaged sources.json).

Returns:

{product: output directory}.

Return type:

Dict[str, Path]

ADCS.helpers.animations.godot.assets.products.current_products()[source]
Return type:

Dict[str, str]

ADCS.helpers.animations.godot.assets.products.recipe_hash(product, sources, input_sha)[source]
Parameters:
  • product (Product)

  • sources (Dict[str, Dict[str, Any]])

  • input_sha (Dict[str, str])

Return type:

str

ADCS.helpers.animations.godot.assets.products.verify_processed()[source]

Re-hash every current product’s files. Returns {product: [problems]}.

Return type:

Dict[str, List[str]]