Expand description
Scriptwriter pipe-hints on a direction: a source filename and per-cue
attribute overrides. Port of _parse_direction_hint and friends.
Structs§
- Hints
- What a direction’s pipe-hints yielded.
Constants§
- HINT_
ATTRS - Script-facing hint name → the
SfxEntryfield it populates. Add a key here to support a new attribute; nothing else needs to change. - LOOPED_
CUE_ PREFIXES - Cue prefixes whose layers loop, so a play_duration percentage is meaningless — the mixer only honours it for MUSIC / SFX / BEAT.
Functions§
- filter_
sfx_ overrides - Narrow attribute hints to the ones this cue can use: silence cues take
none, looped layers drop
play_duration. - fmt_g
- Python’s
%g/f"{v:g}": shortest form, trailing zeros dropped. - format_
hint_ attr - Render an override back into script-hint form (
play_volume_pct=20%). Inverse of theHINT_ATTRSlookup, used by the script regenerator. - hint_
range - Accepted range per target field, mirroring the SfxEntry validators.
- parse_
direction_ hint - Split
rawinto its direction text, source hint and attribute hints. - parse_
hint_ 🔒value - py_repr
- Python
repr()of a string: single quotes unless the value contains one.