一键导入
director-rhai
Author Rhai scripts for the Director video engine. Use this when the user asks to create or edit video scripts, animations, or cinematic transitions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Author Rhai scripts for the Director video engine. Use this when the user asks to create or edit video scripts, animations, or cinematic transitions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | director-rhai |
| description | Author Rhai scripts for the Director video engine. Use this when the user asks to create or edit video scripts, animations, or cinematic transitions. |
This skill enables the creation of high-performance video scripts using the Director engine's Rhai API. It leverages Skia for rendering and Taffy for layout.
To author valid, efficient, and visually rich Rhai scripts that the Director engine can execute to generate video frames or full exports.
Movie object.
let movie = new_director(1920, 1080, 30); (Width, Height, FPS)let scene = movie.add_scene(5.0); (Duration in seconds)let box = scene.add_box(#{ ... });let text = scene.add_text(#{ content: "Hello", ... });flex_direction, justify_content, align_items, gap, padding).animate, spring, and add_animator.
node.animate("property", start, end, duration, "easing"[, delay]);node.spring("property", start, end, #{ stiffness: 100, damping: 10 });movie.add_transition(scene1, scene2, "fade", 1.0, "ease_in_out");movie object at the end.
movieanimate has 5 or 6 arguments. Using too many or too few will cause a "Function not found" error at runtime.animate calls on the same property will play back-to-back. Use the delay argument (6th parameter) to pause before starting an animation.assets/logo.png).spring for UI-like movements and back_out/elastic_out for premium-feeling entrances.Consult resources/API_REFERENCE.md for a full list of functions and properties.
See examples/ for reference implementation patterns.