Example: stock market

After Effects CS6 Scripting Guide - Adobe Blogs

Adobe After Effects CS6. Scripting Guide . DRAFT. Copyright 1992-2012 Adobe Systems Incorporated. All rights reserved. Adobe After Effects CS6 Scripting Guide NOTICE: All information contained herein is the property of Adobe Systems Incorporated. No part of this publication (whether in hardcopy or electronic form) may be reproduced or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written consent of Adobe Systems Incorporated. The software described in this document is furnished under license and may only be used or copied in accordance with the terms of such license. This publication and the information herein is furnished AS IS, is subject to change without notice, and should not be construed as a commitment by Adobe Systems Incorporated.

4 Overview The ExtendScript Toolkit (ESTK) 4 File and Folder Objects: Because path name syntax is very different in different operating systems, Adobe ExtendScript defines File and Folder objects to provide platform-independent access to the underlying file system. ScriptUI User Interface Module: The ExtendScript ScriptUI module provides the ability to create and interact

Tags:

  Guide, Adobe, Scripting, Scripting guide

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Transcription of After Effects CS6 Scripting Guide - Adobe Blogs

1 Adobe After Effects CS6. Scripting Guide . DRAFT. Copyright 1992-2012 Adobe Systems Incorporated. All rights reserved. Adobe After Effects CS6 Scripting Guide NOTICE: All information contained herein is the property of Adobe Systems Incorporated. No part of this publication (whether in hardcopy or electronic form) may be reproduced or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written consent of Adobe Systems Incorporated. The software described in this document is furnished under license and may only be used or copied in accordance with the terms of such license. This publication and the information herein is furnished AS IS, is subject to change without notice, and should not be construed as a commitment by Adobe Systems Incorporated.

2 Adobe Systems Incorporated assumes no responsibility or liability for any errors or inaccuracies, makes no warranty of any kind (express, implied, or statutory) with respect to this publication, and expressly disclaims any and all warranties of merchantability, fitness for particular purposes, and noninfringement of third party rights. Any references to company names in sample templates are for demonstration purposes only and are not intended to refer to any actual organization. Adobe , the Adobe logo, After Effects , and Photoshop are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries. Apple, Mac, and Macintosh are trademarks of Apple Computer, Inc.

3 , registered in the United States and other countries. Microsoft, and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and other countries. JavaScript and all Java-related marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. UNIX is a registered trademark of The Open Group. All other trademarks are the property of their respective owners. All other trademarks are the property of their respective owners. If this Guide is distributed with software that includes an end user agreement, this Guide , as well as the software described in it, is furnished under license and may be used or copied only in accordance with the terms of such license.

4 Except as permitted by any such license, no part of this Guide may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, recording, or otherwise, without the prior written permission of Adobe Systems Incorporated. Please note that the content in this Guide is protected under copyright law even if it is not distributed with software that includes an end user license agreement. The content of this Guide is furnished for informational use only, is subject to change without notice, and should not be construed as a commitment by Adobe Systems Incorporated. Adobe Systems Incorporated assumes no responsibility or liability for any errors or inaccuracies that may appear in the informational content contained in this Guide .

5 Adobe Systems Incorporated, 345 Park Avenue, San Jose, California 95110, USA. Overview Introduction to Scripting in After Effects A script is a series of commands that tells an application to perform a series of operations. You can use scripts in most Adobe applications to automate repetitive tasks, perform complex calculations, and even use some functionality not directly exposed through the graphical user interface. For example, you can direct After Effects to reorder the layers in a composition, find and replace source text in text layers, or send an e-mail message when rendering is complete. See Examples on page 191 for examples of what scripts can do. Although both the After Effects expressions language and the After Effects ExtendScript Scripting language are based on JavaScript, the expressions features and Scripting features of After Effects are separate and distinct.

6 Expressions cannot access information from scripts (such as variables and functions). Whereas a script tells an application to do something, an expression says that a property is something. However, because the After Effects expression language and ExtendScript are both based on JavaScript, familiarity with either one is very helpful in understanding the other. The heart of a scriptable application is the object model. When you use Adobe After Effects , you create projects, compositions, and render queue items along with all of the elements that they contain: footage, images, solids, layers, masks, Effects , and properties. Each of these items, in Scripting terms, is an object. This Guide describes the ExtendScript objects that have been defined for After Effects projects.

7 The After Effects object model is composed of a project, items, compositions, layers, and render queue items. Each object has its own special attributes, and every object in an After Effects project has its own identity (although not all are accessible to Scripting ). You should be familiar with the After Effects object model in order to create scripts. NOTE: JavaScript objects normally referred to as properties are consistently called attributes in this Guide , to avoid confusion with After Effects ' own definition of a property (an animatable value of an effect, mask, or transform within an individual layer). Nearly all of what Scripting can accomplish replicates what can be done by means of the After Effects graphical user interface.

8 A thorough knowledge of the application itself and its graphical user interface is essential to understanding how to use Scripting in After Effects . The ExtendScript language After Effects scripts use the Adobe ExtendScript language, which is an extended form of JavaScript used by several Adobe applications, including Photoshop, Illustrator, and InDesign. ExtendScript implements the JavaScript language according to the ECMA-262 specification. The After Effects Scripting engine supports the 3rd Edition of the ECMA-262 Standard, including its notational and lexical conventions, types, objects, expres- sions, and statements. ExtendScript also implements the E4X ECMA-357 specification, which defines access to data in XML format.

9 ExtendScript defines a global debugging object, the dollar ($) object, and a reporting utility for ExtendScript elements, the ExtendScript Reflection interface. 3. Overview The ExtendScript Toolkit (ESTK). 4. File and Folder Objects: Because path name syntax is very different in different operating systems, Adobe ExtendScript defines Fi l e and Fol d e r objects to provide platform-independent access to the underlying file system. ScriptUI User Interface Module: The ExtendScript ScriptUI module provides the ability to create and interact with user interface elements. ScriptUI provides an object model for windows and UI control elements that you can use to create a user interface for your scripts.

10 Tools and Utilities: In addition, ExtendScript provides tools and features such as a localization utility for providing user-interface string values in different languages and global functions for displaying short messages in dialog boxes (a l e r t , c on f i r m , and prompt ). External Communication: ExtendScript provides a S o cke t object that allows you to communicate with remote systems from your After Effects scripts. Interapplication Communication: ExtendScript provides a common Scripting environment for all Adobe applications, and allows interapplication communication through scripts. The ExtendScript Toolkit (ESTK). After Effects includes a script editor and debugger, the ExtendScript Toolkit (ESTK), which provides a conve- nient interface for creating and testing your own scripts.


Related search queries