ExtendScript (.jsx
) used to animate Adobe Illustrator’s layers in order to preview sequenced layer frames for animation.
Here’s a close-up of the script’s dialog window:
- Animates layers based on user-defined frame rate.
- Skips non-printable (template) layers.
- Ascending or descending layer animation.
- Automatic direction reversal (ping pong).
- Restores layer visibility when done.
Put Layer Animation ⭐⭐⭐⭐⭐.jsx in /Applications/Adobe\ Illustrator\ CC\ 2014/Presets.localized/en_US/Scripts
and run it directly in Illustrator via the File >
Scripts menu.
There’s a couple of ways to develop/test this script:
- See installation instructions above (not recommended).
- Use Adobe’s free ExtendScript Toolkit (ESTK) app (see animated gif below).
- Using a dialog window, from what I have discovered, there’s no way to let the user cancel a loop (tried this, didn’t work).
- Related to the above, the built-in method
$.sleep()
blocks all other scripts from executing; that means spinning beach ball hell. - Once a palette displays it will break its connection with the
Application
; this limits the kind of interactivity a palette UI offers.
- Beginning ScriptUI (2MB PDF)
- ScriptUI Events:
call()
,dispatchEvent()
,notify()
- fabiantheblind/extendscript
- jtnimoy/scripting-for-illustrator-tutorial
- Adobe Illustrator CC 2014 Scripting Guide
- Adobe® Creative Suite® 5: Javascript Tools Guide (4.6MB PDF)
- ExtendScript libraries
- ScriptUI Window in Photoshop – Palette vs. Dialog
- Archives For ExtendScript / JavaScript
Copyright © 2015 Micky Hulse.
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.