![]() ![]() The animation for the first four are part of the timing settings for the spread. For each rectangle the animation is triggered by a different event. On this page, all rectangles on the page are assigned the Motion Preset “twirl”. So now that the script is working, let’s turn our attention to how it creates its magic: – ![]() Set measurement unit of script preferences to auto value The fix is to set the measurement unit for script preferences to auto value: tell application "Adobe InDesign CC 2017" Should the measurement unit for script preferences be set, you may encounter the error. This sets the measurement units of the document to either inches or points depending on the value passed as its argument. If you look at the sample script, you will see multiple calls to a handler mySetUnits. In running the script, we encountered a potential error: “Data is out of range.” The problem is simply because we prefer to set the measurement unit for script preferences rather than setting the measurements for the document itself. And that is what we attempted to do, up to the point where the script creates a second document page. This is a fairly lengthy script, but not unreasonably complex, especially if you pick it apart piece by piece. In our previous blog post we started looking at a script “AnimationEncyclopedia” which is part of the Sample scripts provided by Adobe. ![]()
0 Comments
Leave a Reply. |