The Working Approach
The script derives the sale price, the percentage and the saving from the regular price, so they can never disagree. The check refuses no price or more than one way to state the discount, a sale price at or above the regular price, a code that is not 3–16 capital letters or digits, a missing deadline or one already past postDate, a missing photo file, and text too long to fit; it prints the computed prices to read back to the user. The five beats run hook, discount, price, code and call to action; 15 seconds stretches every beat. theme picks a palette (black-friday, cyber-monday, holiday, new-year, light), brand.accent overrides its accent, and labels translates fixed words while prices follow locale. The film has no soundtrack.
Expected Deliverables
- An editable HyperFrames project in
out/with five beats at 10 or 15 seconds, plus a rendered MP4 in 9:16, 4:5, 1:1 or 16:9, carrying a small "Made with OpenMotion" sign-off unless--no-creditis passed.
From Brief to Review
- 01Collect and confirm the offer
Gather brand, occasion, product name and photo, regular price, one discount form, currency, code, zoned deadline, call to action and short URL, and read the facts back to the user.
- 02Write and check offer.json
Follow the schema, then run
node scripts/build.mjs --check offer.jsonand read the computed prices back to the user before generating. - 03Generate, render and review
Run
node scripts/build.mjs offer.json out/ [--aspect 9:16] [--duration 10] [--no-credit], thennpx hyperframes checkandnpx hyperframes render -o promo.mp4, and review a contact sheet with stills at each beat.