cutan.compile.lowering¶
How the stage compiler lowers the cut-out genre’s actions, and reads a character’s swap sets.
The stage compiler (an.stage.compile) knows no cut-out kind by name. A genre
hands it an action lowering (an.genres.ActionKind.lowering) for each
kind that is more than a tween or set, and an entity swap declaration
(an.genres.EntityKind.swap_declaration) saying what a descriptor declares.
Both live here; the code they call is cutan.compile.passes.
>>> from cutan.characters.registration import PlayAction
>>> PLAY_LOWERING.extent_resolver(None)(PlayAction(target="a", animation="hop"))
0.5
Module Attributes
The mall store holding character descriptors (a persisted name). |
Functions
|
What a character's (migrated) descriptor declares, for the swap vocabulary. |
Classes
The |
|
The |
- cutan.compile.lowering.CHARACTERS_STORE: str = 'characters'¶
The mall store holding character descriptors (a persisted name).
- class cutan.compile.lowering.ExpressionLowering[source]¶
Bases:
objectThe
expressionaction kind: the face solver’s input, so it makes no clip of its own.
- class cutan.compile.lowering.PlayLowering[source]¶
Bases:
objectThe
playaction kind, as the stage compiler lowers it (an#7, an#166, an#220).- expand(flat_list, *, products=None, **kw)[source]¶
Replace each
playof a motion preset by the tweens and sets it stands for, a walk’s gait under the scene’s policy (products, an#348).- Return type:
- extent_resolver(vocab, *, products=None)[source]¶
play -> secondsfor a play that names no duration, read off its descriptor — and, for a walk, off the gait and scale the expansion will fill in (cutan.compile.passes.preset_context_of(), cutan#12), under the scene’s policy the policy pass left inproducts(an#348).
- cutan.compile.lowering.character_swap_declaration(entity, mall)[source]¶
What a character’s (migrated) descriptor declares, for the swap vocabulary.
Nonewhen the store has no descriptor for the entity (a procedural or placeholder rig: its built nodes’ sets ARE its declaration).- Return type:
SwapDeclaration|None