Automation
Run work by itself with rules
Set up rules so AnimSync starts checks, re-exports, Unreal imports and your own tasks when something happens in a project, and choose which computer does the work.
A rule tells a project to start work by itself when something happens. For example: when a version is approved, import it into Unreal. Rules are kept under Project → Automation → Rules. Project leads create and change them; everyone can see them.
Nothing a rule starts approves anything. A re-export is a new version that waits for review, and findings from checks and tests are information for people.
What a rule is made of
* When: the moment that starts it. * Action: what to do first. * Then: more steps, each starting when the one before it succeeded. * Where it runs: which computer does the work. * Which assets: all of them, or one type, one character or one animation set.
When a rule can start
| When | What it means |
|---|---|
| A version is published | Any new version of an asset. |
| A scene is published | A new version that is a program scene (.ma, .mb, .max, .blend), not an export. |
| A version is approved | A reviewer approved it. If several sign-offs are needed, the last one. |
| Changes are requested on a version | A reviewer asked for changes. |
| A review note is added to a version | Someone wrote a note or a reply. |
| An automation step succeeds | A runner finished a re-export, an import, in-engine tests or a custom task. You can pick which step. |
| An automation step fails | A runner could not finish a step. |
| On a schedule | Every day, or one day a week, at an hour (UTC). |
A rule on a review decision works on the version that was decided on. If the action cannot use that version (an Unreal import needs an FBX), it takes the asset's newest version it can use.
Actions and steps
The actions are Run data checks, Re-export source to FBX / GLB, Import into Unreal, Run in-engine tests and Run a custom task (a task of your own plugin).
After a re-export, an import, the tests or a custom task you can add up to six more steps under Then, for each asset that succeeds: imports, in-engine tests and custom tasks, in the order you want. Use ↑ to move a step earlier and Remove to take it out.
Where it runs
* Any runner that has the program: the first free computer that can do it. * The author's own computer: a computer of whoever published the version, running AnimSync Bridge. Use this when the work should land in that person's own Unreal project. * A named runner: one computer, such as a build machine.
Every later step of the rule stays on the same choice. If the chosen computer does not have the program, the asset is skipped and the job says why.
Two common setups
Review first, then the engine
- When: *A version is approved*.
- Action: *Import into Unreal*.
- Then: *Run in-engine tests*.
Straight to the engine, review later
- When: *A scene is published*.
- Action: *Re-export source to FBX / GLB*.
- Then: *Import into Unreal*, then *Run in-engine tests*.
- Where it runs: *The author's own computer*.
The versions the second setup makes still wait for review.
Change, pause or remove a rule
On each rule: Edit… changes it, Turn off pauses it, Run now runs it over all its assets, and Archive removes it. The jobs a rule started are kept.
Good to know
* A rule on publishing does not react to a version a runner made, so rules cannot set each other off. To continue after a runner's work, add steps to the rule. * What a rule on a finished step starts does not start another rule of that kind. * Only one step of the same kind waits for an asset at a time. A second rule asking for the same step on the same asset is skipped while the first waits. * Data checks finish inside AnimSync at once and do not count as a finished step.
For tool makers
A tool on your computer can be told about the same moments and react to them. See Make a local integration.