ADOBE AFTER EFFECTS CS6 SCRIPTING GUIDE DRAFT – PDF Free Download

Looking for:

Adobe after effects cs6 scripting guide free

Click here to Download

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Your computer must meet the minimum technical specifications outlined below to run and use Photoshop. Applicable for. October release version The Photoshop hardware requirements for Processor and Graphics card and have increased for version Ensure your system still meets the minimum requirements listed below.

If you experience any issues, see Known issues in Photoshop. System requirements for earlier releases. Photoshop system requirements earlier releases. To find out if your computer supports Metal, see Mac computers that support Metal.

Internet connection, Adobe ID, and acceptance of license agreement required to activate and use this product. This product may integrate with or allow access to certain Adobe or third-party hosted online services.

Applications and Services may not be available in all countries or languages and may be subject to change or discontinuation without notice. Additional fees or membership charges may apply. Your computer may need to meet additional system requirements to work efficiently with Adobe Camera Raw. See Adobe Camera Raw System requirements for details. Buy Adobe Photoshop or start a Free Trial.

Legal Notices Online Privacy Policy. Buy now. User Guide Cancel. Make it. Minimum and recommended system requirements for Photoshop. Language versions available for Photoshop. Windows and macOS. Photoshop is available in the following languages:. System requirements for Adobe Camera Raw. More like this System requirements Adobe Camera Raw System requirements Photoshop on mobile Photoshop system requirements Earlier releases Older versions of Photoshop System requirements and supported languages.

Sign in to your account. Sign in. Quick links View all your plans Manage your plans. Photoshop will not install on a volume that uses a case-sensitive file system.

 
 

Adobe after effects cs6 scripting guide free. After-Effects-CS6-Scripting-Guide

 

Animate is used to design vector graphics and animation for television series , online animation, websites , web applications , rich web applications , game development, commercials, and other interactive projects.

The program also offers support for raster graphics , rich text , audio video embedding , and ActionScript 3. It was first released in as FutureSplash Animator , and then renamed Macromedia Flash upon its acquisition by Macromedia. It served as the main authoring environment for the Adobe Flash platform, vector-based software for creating animated and interactive content. It was renamed Adobe Animate in to more accurately reflect its market position then, since over a third of all content created in Animate uses HTML5.

FutureSplash Animator was developed by FutureWave Software , a small software company whose first product, SmartSketch, was a vector-based drawing program for pen-based computers. With the implosion of the pen-oriented operated systems, it was ported to Microsoft Windows as well as Apple Inc.

In , the company decided to add animation abilities to their product and to create a vector-based animation platform for World Wide Web ; hence FutureSplash Animator was created. At that time, the only way to deploy such animations on the web was through the use of Java. In December , Macromedia bought FutureWave and rebranded the product as Macromedia Flash, a brand name that continued for 8 major versions. On December 1, , Adobe announced that the program would be renamed Adobe Animate on its next major update.

The move comes as part of an effort to disassociate the program from Adobe Flash Player , acknowledging its increased use for authoring HTML5 and video content, and an effort to begin discouraging the use of Flash Player in favor of web standards -based solutions. ActionScript 2. Macromedia Flash Basic 8, a “lite” version of the Flash authoring tool targeted to new users who only wanted to do a basic drawing, animation, and interactivity. The Basic product was eventually stopped. ActionScript 3.

Other features of Flash CS5 are a new text engine TLF , new document templates, further improvement to inverse kinematics , new Deco tool effects, live FLV playback preview, and the code snippets panel. A sub-release was launched in August From Wikipedia, the free encyclopedia. Animation software made by Adobe. For the multimedia software platform, see Adobe Flash. For the player, see Adobe Flash Player. Not to be confused with Adobe Edge Animate. Adobe Systems. Archived from the original on Retrieved Ars Technica.

Retrieved 1 December December FutureWave software. Archived from the original on 5 November Retrieved 25 March Archived from the original on 9 February Archived from the original on 12 June Archived from the original on 1 October Archived from the original on 23 February Archived from the original on 1 December Archived from the original on 3 August Archived from the original on 14 December Archived PDF from the original on Sep Archived PDF from the original on 26 Sep Archived from the original on 5 December Retrieved 27 March Archived from the original on 13 March Daring Fireball.

Archived from the original on 30 April Mike Chambers. Archived from the original on 22 April Archived from the original PDF on 14 May Archived from the original on 12 April Archived from the original on 4 November Archived from the original on June 28, Retrieved June 20, Archived from the original on 26 March Retrieved 26 March Adobe Blog.

Motion graphics and animation software. Pivot Animator. Adobe Director Avid Elastic Reality. Adobe Flash. Adobe Flash Media Server. Adobe Creative Suite and Creative Cloud.

Adobe eLearning Suite. Bridge Device Central. Adobe Inc. Category Commons. Authority control. Israel United States. Namespaces Article Talk. Views Read Edit View history. Help Learn to edit Community portal Recent changes Upload file.

Download as PDF Printable version. A screenshot of Adobe Animate running on Windows. FutureWave Macromedia. Windows 10 version and later, macOS Trialware software as a service. Initial version of Flash released in May, with basic editing tools and a timeline.

The name “Flash” was created by blending the words Future and Splash. Released with Flash Player 4, new features include a redesigned user interface, internal variables , an input field, improved timeline smart guides, outline color mode , advanced ActionScript, publish settings panel and MP3 audio streaming.

Released with Flash Player 5, new features include pen and sub-selection tools, ActionScript 1. Released with Flash Player 7, new features include screens forms for non-linear state-based development and slides for organizing content in a linear slide format like PowerPoint , small font size rendering, timeline effects, updated templates, high-fidelity import and video import wizard.

Released with Flash Player 8, new features include graphical filters blur, drop shadow , glow, etc. Flash CS3 is the first version of Flash released under the Adobe brand name, and features improved integration with Adobe Photoshop , enhanced Quicktime video export, filter and motion tween copy-paste support, improved vector drawing tools becoming more like Adobe Illustrator and Adobe Fireworks.

Flash CS4, released in September 23, , introduces a new object-based motion-tween, renaming the former frame-based version as classic tween. Additions include basic 3D object manipulation, inverse kinematics bones , a vertical properties panel, the Deco and Spray brush tools, motion presets and further expansions to ActionScript 3. CS4 allows the developer to create animations with many features absent in prior versions. Flash CS5 was released in April 12, , and launched for purchase on April 30, Flash CS5 Professional includes support for publishing iPhone applications.

Flash Professional CS5. It includes improved support for publishing iPhone applications, following Apple’s revision of their iOS developer terms. Some examples are content scaling and stage resizing, copy and paste layers, sharing symbols across FLA files, symbol rasterization, incremental compilation, auto-save and file recovery, and integration with CS Live online services.

Adobe Flash Professional CS6 was released in It includes support for publishing files as HTML5 and generating sprite sheets. Minor performance improvements and bug fixes, and the removal of legacy features such as ActionScript 2 support, as well as the removal of the bone tool, deco tool and spray brush tools. As part of the Creative Cloud suite, Flash CC offered users the ability to synchronize settings and save files online.

Flash Professional CC was released in June 18, Flash Professional CC Flash Professional CC was released in June 15, , with the return of the bone animation tool inverse kinematics , import H. Adobe Animate CC

 

[(PDF) After-Effects-CS6-Scripting-Guide | Far Shad – replace.me

 

Просто надо уметь задавать вопросы… Минуту спустя незаметная фигура проследовала за Беккером по калле Делисиас в сгущающейся темноте андалузской ночи. ГЛАВА 29 Все еще нервничая из-за столкновения с Хейлом, Сьюзан вглядывалась в стеклянную стену Третьего узла.

В шифровалке не было ни души. Хейл замолк, уставившись в свой компьютер. Она мечтала, чтобы он поскорее ушел.

 
 

[Adobe after effects cs6 scripting guide free

 
 

The camera shutter phase. The minimum number of motion blursamples per frame for Classic 3D layers,shape layers, and certain effects. The maximum number of motion blursamples of 2D layer motion.

The selected properties of the composition. CompItem activeCamera attributeapp. The value is null if the compositioncontains no enabled camera layers. TypeCameraLayer object; read-only. The three array values specify the red, green, and blue componentsof the color. TypeAn array containing three floating-point values, [R, G, B], in the range [0.

CompItem displayStartTime attributeapp. CompItem draft3d attributeapp. This corresponds to the value of the Draft3D button in the Composition panel. CompItem dropFrame attributeapp. When false, indicates non-drop-frametimecode. This corresponds to the setting in the Composition Settings dialog box. CompItem duplicate methodapp. ReturnsCompItem object. CompItem frameBlending attributeapp. Corresponds to the value of the Frame Blendingbutton in the Composition panel.

CompItem frameDuration attributeapp. This is the inverse of the frameRate value frames-per-second. CompItem hideShyLayers attributeapp. When false, all layers are visible,including those whose shy value is true. CompItem layer methodapp. After Effects scripting referenceCompItem object56ParametersindexThe index number of the desired layer in this composition.

An integer in the range [ The relIndex value is added to the index value of thislayer to find the position of the desired layer. The position of the desired layer, relative to otherLayer.

An integer in the range [1—other-Layer. This value is added to the otherLayer value to derive the absolute index of the layer toreturn. ReturnsLayer object. CompItem layers attributeapp. TypeLayerCollection object; read-only. CompItem motionBlur attributeapp. Corresponds to the value of the Motion Blur buttonin the Composition panel. CompItem numLayers attributeapp. CompItem openInViewer methodapp. ReturnsViewer object for the Composition panel, or null if the composition could not be opened.

CompItem preserveNestedFrameRate attributeapp. CompItem renderer attributeapp. Allowed values are the members of compItem.

CompItem renderers attributeapp. Member strings reflect installed modules, as seen in the Advancedtab of the Composition Settings dialog box. TypeArray of strings; read-only. CompItem resolutionFactor attributeapp.

The two values in the array specify how many pixels to skip when sampling; the first number controlshorizontal sampling, the second controls vertical sampling. Full resolution is [1,1], half resolution is [2,2], andquarter resolution is [4,4]. The default is [1,1]. TypeArray of two integers in the range [ This is a 0-based array the first object is at index 0. TypeArray of Layer objects; read-only.

CompItem selectedProperties attributeapp. The first property isat index position 0. TypeArray of Property and PropertyGroup objects; read-only. CompItem shutterAngle attributeapp. This corresponds to the Shutter Angle setting in the Advancedtab of the Composition Settings dialog box. CompItem shutterPhase attributeapp. This corresponds to the Shutter Phase setting in the Advancedtab of the Composition Settings dialog box.

TypeInteger in the range [— CompItem workAreaDuration attributeapp. This is the difference of the start-point and end-point times of theComposition work area. CompItem workAreaStart attributeapp. All methods and attributes of FootageSource, in addition to thoselisted below, are available when working with FileSource. FileSource file attributeapp. TypeFile object; read-only. FileSource missingFootagePath attributeapp. This method can be called only on a mainSource, not a proxySource.

It can contain various types of items footage, compositions, solids as well as other folders. Unlike the ItemCollection in the Project object, this collection contains only the top-level items in the folder. Top-level within the folder is not the same as top-level within the project.

Only those items that are top-levelin the root folder are also top-level in the Project. TypeItemCollection object; read only. FolderItem numItems attributeapp.

If the folder contains another folder, only the FolderItem for that folder is counted, not any subitems containedin it. TypeInteger; read only. All methods and attributes of AVItem andItem, in addition to those listed below, are available when working with FootageItem.

Replaces a footage file with a placeholder object. Replaces a footage file with an image sequence. Replaces a footage file with a solid. Opens the footage in a Footage panel. FootageItem file attributeapp. Otherwiseit is null. TypeFile object; read only. The attribute is read-only. FootageItem openInViewer methodapp. NOTE: Missing and placeholder footage can be opened using this method, but cannot manually via doubleclickingit.

ReturnsViewer object for the Footage panel, or null if the footage could not be opened. FootageItem replace methodapp. In addition to loading the file, the method createsa new FileSource object for the file and sets mainSource to that object. The method preserves interpretation parameters from the previous mainSource object.

If the specified file hasan unlabeled alpha channel, the method estimates the alpha interpretation. FootageItem replaceWithPlaceholder methodapp.

Creates a new PlaceholderSource object,sets its values from the parameters, and sets mainSource to that object. ParametersnameA string containing the name of the placeholder.

FootageItem replaceWithSequence methodapp. In addition to loading the file, themethod creates a new FileSource object for the file and sets mainSource to that object. ParametersfileforceAlphabeticalAn ExtendScript File object for the first file in the sequence to be used as the footage main source. FootageItem replaceWithSolid methodapp.

Creates a new SolidSource object, sets its valuesfrom the parameters, and sets mainSource to that object. After Effects scripting referenceFootageItem object68Parameterscolor The color of the solid, an array of three floating-point values, [R, G, B], in the range [0. The mode of an alpha channel. The color to be premultiplied. When true, an alpha channel in a footage clip orproxy should be inverted. When true, footage is a still image. The field separation type. How the fields are to be separated in non-still footage.

The pulldown type for the footage. How many times an image sequence is set to loop. The native frame rate of the footage. The effective frame rate as displayed and renderedin compositions by After Effects. The rate to which footage should conform. Estimates the pulldownType setting. If hasAlpha is false, this attribute has no relevant meaning. One of:AlphaMode. If set to 0, the nativeFrameRate is used instead. It is an error to set this value if FootageSource. It is an error to set this value to 0 if remove-Pulldown is not set to PulldownPhase.

If this is 0 when you set removePulldown to a value other thanPulldownPhase. OFF, then this is automatically set to the value of nativeFrameRate. FootageSource displayFrameRate attributeapp. If removePulldown is PulldownPhase. If removePulldown is not PulldownPhase.

It is an error to set this attribute if isStill is true. It is an error to set this value to FieldSeparationType. One of:FieldSeparationType. If hasAlpha isfalse, no change is made. FootageSource guessPulldown methodapp. If isStill is true,no change is made. ParametersmethodThe method to use for estimation. A PulldownMethod enumerated value, one of:PulldownMethod. In this case, the attributes alphaMode, invertAlpha, andpremulColor have valid values. When false, those attributes have no relevant meaning for the footage.

FootageSource highQualityFieldSeparation attributeapp. FootageSource invertAlpha attributeapp. This attribute is valid only if an alpha is present. If hasAlpha is false, or if alphaMode is AlphaMode. FootageSource isStill attributeapp. Examples of still footage are JPEG files, solids, and placeholders with duration of 0. Examples of non-stillfootage are movie files, sound files, sequences, and placeholders of non-zero duration.

FootageSource nativeFrameRate attributeapp. FootageSource premulColor attributeapp. This attribute is valid only if the alphaMode is alphaMode.

TypeArray of three floating-point values [R, G, B], in the range [0. FootageSource removePulldown attributeapp. It is an error to attempt to set this to a value other thanPulldownPhase. One of:PulldownPhase. The constructor takes an optional parameter, an ExtendScript File object for the file. If it is not supplied, youmust explicitly set the value of the file attribute before using the object with the importFile method.

Forexample:new ImportOptions. When true, import a sequence of files, rather than an individualfile. The file to import, or the first file of the sequence to import.

ImportOptions canImportAs methodimportOptions. If this method returns true,you can set the given type as the value of the importAs attribute. ParameterstypeThe type of file that can be imported. COMP ;io. If a file is set in the constructor, you can access it through this attribute.

ImportOptions forceAlphabetical attributeimportOptions. ImportOptions importAs attributeimportOptions. Before setting, use canImportAs to checkthat a given file can be imported as the source of the given object type. One of:ImportAsType. After Effects scripting referenceItem object78Item objectapp. The first item is at index 1. ExampleThis example gets the second item from the project and checks that it is a folder. It then removes from thefolder any top-level item that is not currently selected.

It also checks to make sure that, for each item in thefolder, the parent is properly set to the correct folder. The comment isfor the user’s purpose only; it has no effect on the item’s appearance or behavior. Item id attributeapp. The valueof the ID remains the same when the project is saved to a file and later reloaded. However, when you importthis project into another project, new IDs are assigned to all items in the imported project.

The ID is notdisplayed anywhere in the user interface. Item label attributeapp. Colors are represented by their number 0 for None, or 1 to 16 for one of the presetcolors in the Labels preferences. Custom label colors cannot be set programmatically. Item name attributeapp. Item parentFolder attributeapp. If this item is at the top level of the project, this isthe project’s root folder app.

ExampleThis script creates a new FolderItem in the Project panel and moves compositions into it. Item typeName attributeapp. The ItemCollection belonging to a Project objectcontains all the Item objects for items in the project.

The ItemCollection belonging to a FolderItem objectcontains all the Item objects for items in that folder. All methods and attributes of Collection, in addition to thoselisted below, are available when working with ItemCollection. Creates a new FolderItem object and adds it to the collection. ItemCollection addComp methodapp. Creates and returns a new CompItem object and adds it to this collection.

ParametersnameA string containing the name of the composition. ItemCollection addFolder methodapp. Creates and returns a new FolderItem object and adds it to this collection. ParametersnameA string containing the name of the folder. ReturnsFolderItem object. The constructor creates a KeyframeEase object. Both parameters are required.

Sets the speed attribute. Sets the influence attribute. ExampleThis example assumes that the Position, a spatial property, has more than two keyframes. KeyframeEase influence attributemyKey. The units depend on the type of keyframe, and are displayed in the KeyframeVelocity dialog box. After Effects scripting referenceLayer object86Layer objectapp.

Layers contain AE properties, in addition to their JavaScript attributes and methods. ExampleIf the first item in the project is a CompItem, this example disables the first layer in that composition andrenames it.

This might, for example, turn an icon off in the composition. Moves the layer to the bottom of the composition makes itthe last layer. Reports whether this layer will be active at a specified time.

Sets a new parent for this layer. Applies a named collection of animation settings to thelayer. Layer active attributeapp. For this to be true, the layer must be enabled, no other layer may be soloing unless this layer is soloed too, andthe time must be between the inPoint and outPoint values of this layer. This value is never true in an audio layer; there is a separate audioActive attribute in the AVLayer object.

Layer activeAtTime methodapp. To return true, the layer must be enabled, no otherlayer may be soloing unless this layer is soloed too, and the time must be between the inPoint and outPointvalues of this layer. After Effects scripting referenceLayer object88ParameterstimeThe time in seconds, a floating-point value. Layer applyPreset methodappapp. Predefined animationpreset files are installed in the Presets folder, and users can create new animation presets through the userinterface.

Layer comment attributeapp. Layer containingComp attributeapp. TypeCompItem object; read-only. The original layer remains unchanged. Creates a new Layerobject with the same values as this one, and prepends the new object to the layers collection in the targetCompItem. Retrieve the copy using intoComp.

Copying in a layer changes the index positions of previously existing layers in the target composition. This isthe same as copying and pasting a layer through the user interface. ParametersintoCompThe target composition, and CompItem object. Layer duplicate methodapp. Creates a new Layer object in which all values are the same as in this one. Layer enabled attributeapp. This corresponds to the video switch state of the layer in theTimeline panel. Layer hasVideo attributeapp.

After Effects scripting referenceLayer object90TypeBoolean; read-only. Layer index attributeapp. Layer inPoint attributeapp. TypeFloating-point value in the range [ Layer isNameSet attributeapp. Layer locked attributeapp. This corresponds to the lock toggle in the Layer panel. Layer move After methodapp. After Effects scripting referenceLayer object91ParameterslayerThe target layer, a layer object in the same composition.

Layer moveBefore methodapp. ParameterslayerThe target layer, a layer object in the same composition. Layer moveToBeginning methodapp. Layer moveToEnd methodapp. After Effects scripting referenceLayer object92Layer name attributeapp.

By default, this is the same as the Source name which cannot be changed in the Layerpanel , but you can set it to be different. Layer nullLayer attributeapp. Layer outPoint attributeapp.

Layer parent attributeapp. Offset values are calculated to counterbalance any transforms above this layer in the hierarchy, so that whenyou set the parent there is no apparent jump in the layer’s transform.

For example, if the new parent has arotation of 30 degrees, the child layer is assigned a rotation of degrees. To set the parent without changing the child layer’s transform values, use the setParentWithJump method. After Effects scripting referenceLayer object93Layer remove methodapp. Layer selectedProperties attributeapp. TypeArray of PropertyBase objects; read-only.

Layer setParentWithJump methodapp. If you do not want the child layer to jump, set the parent attribute directly. In this case, an offset is calculatedand set in the child layer’s transform fields, to prevent the jump from occurring.

ParametersnewParentOptional, a layer object in the same composition. If not specified, it sets the parent to None. Layer shy attributeapp. Layer solo attributeapp. Layer startTime attributeapp. Layer stretch attributeapp. A value of means no stretch. Values between 0 and 1are set to 1, and values between -1 and 0 not including 0 are set to Layer time attributeapp. TypeFloating-point value; read-only. The LayerCollection belonging to a CompItem objectcontains all the layer objects for layers in the composition.

The methods of the collection object allow you tomanipulate the layer list. All methods and attributes of Collection, in addition to thoselisted below, are available when working with LayerCollection. ExampleGiven that the first item in the project is a CompItem and the second item is an AVItem, this example showsthe number of layers in the CompItem’s layer collection, adds a new layer based on an AVItem in the project,then displays the new number of layers.

Creates a new, null layer and adds it to this collection. Creates a new layer, a FootageItem with a SolidSource, and adds itto this collection.

Creates a new point text layer and adds it to this collection. Creates a new paragraph box text layer and adds it to this collection. Creates a new camera layer and adds it to this collection. Creates a new light layer and adds it to this collection. Creates a new shape layer and adds it to this collection. Retrieves the layer object with a specified name.

Collects specified layers into a new composition. This method generates an exception if the item cannot be added as a layer to this CompItem. ParametersitemdurationThe AVItem object for the item to be added. Optional, the length of a still layer in seconds, a floating-point value. Used only if the item contains a piece ofstill footage. Has no effect on movies, sequences or audio. If supplied, sets the duration value of the new layer. Otherwise, the duration value is set according to userpreferences.

By default, this is the same as the duration of the containing CompItem. ReturnsAVLayer object. LayerCollection addBoxText methodapp. To create a point text layer, use the addText method. ParameterssourceTextOptional; a string containing the source text of the new layer, or a TextDocument object containingthe source text of the new layer. ReturnsTextLayer object. LayerCollection addCamera methodapp.

ParametersnameA string containing the name of the new layer. After Effects scripting referenceLayerCollection object97centerPointThe center of the new camera, a floating-point array [x, y]. The z value is set to 0. ReturnsCameraLayer object. LayerCollection addLight methodapp. ParametersnamecenterPointA string containing the name of the new layer. The center of the new light, a floating-point array [x, y].

ReturnsLightLayer object. LayerCollection addNull methodapp. ParametersdurationOptional, the length of a still layer in seconds, a floating-point value. LayerCollection addShape methodapp. Use the ShapeLayer object to add properties,such as shape, fill, stroke, and path filters. Tools automatically add a vector groupthat includes Fill and Stroke as specified in the tool options. ReturnsShapeLayer object. LayerCollection addSolid methodapp.

Creates a new AVLayer object,sets the new FootageItem as its source, and adds the layer to this collection. Parameterscolor The color of the solid, an array of three floating-point values, [R, G, B], in the range [0. Otherwise, the duration value is set according touser preferences. LayerCollection addText methodapp. To create a paragraph box text layer, use the addBoxText method. LayerCollection byName methodapp. ParametersnameA string containing the name.

ReturnsLayer object or null. LayerCollection precompose methodapp. It removes theindividual layers from this collection, and adds the new CompItem to this collection. ParameterslayerIndicesnamemoveAllAttributesThe position indexes of the layers to be collected. An array of integers. The name of the new CompItem object. When true the default , retains all attributes in the new composition.

You can only set this to false if there is just one index in the layerIndices array. All methods and attributes of Layer are available when working with Light-Layer. LightLayer lightType attributeapp.

Trying to set this attribute for a non-light layer produces an error. One of:LightType. After Effects scripting referenceMarkerValue objectMarkerValue objectnew MarkerValue comment, chapter, url, frameTarget, cuePointName, params DescriptionThe MarkerValue object represents a layer marker, which associates a comment, and optionally a chapterreference point, Web-page link, or Flash Video cue point with a particular point in a layer.

Create it with theconstructor; all arguments except comment are optional. All arguments are strings that set in the correspondingattributes of the returned MarkerValue object, except params. This is an array containing key-valuepairs. A script can setany number of parameter pairs; the order does not reflect the order displayed in the application.

The amount of time represented by the marker. A chapter link reference point for the associated layer. The Flash Video cue point name. Whether the Flash Video cue point is for an event or navigation. In the first example, you copy your After Effects script directly into the Script Editor and then run it. To use it effectively you must enter the application that contains the open JSX file in this example it is TextEdit ; if you do not know the proper name of the application, type in your best guess to replace TextEdit and AppleScript prompts you to locate it.

After Effects runs scripts in these folders automatically, in alphabetical order, on starting and quitting, respectively. In the Startup folder you can place scripts that you wish to execute at startup of the application. They are executed after the application is initialized and all plug-ins are loaded. Scripting shares a global environment, so any script executed at startup can define variables and functions that are available to all scripts.

In all cases, variables and functions, once defined by running a script that contains them, persist in subsequent scripts during a given After Effects session. Once the application is quit, all such globally defined variables and functions are cleared.

Be sure to give variables in scripts unique names, so that a script does not inadvertently reassign global variables intended to persist throughout a session.

Attributes can also be added to existing objects such as the Application object see Application object on page 17 to extend the application for other scripts. This occurs after the project is closed but before any other application shutdown occurs. If a script has been written to provide a user interface in a dockable panel, the script should be put in the ScriptUI folder. ScriptUI panels work much the same as the default panels in the After Effects user interface.

Instead of creating a Window object and adding controls to it, a ScriptUI Panels script uses the this object that represents the panel. In this case, you should pass the this object as an argument to your function. However, a script that is busy processing a lot of data might not be very responsive. The After Effects scripting engine supports ExtendScript, Adobe s extended version of JavaScript, which implements the 3rd Edition of the ECMA Standard, including its notational and lexical conventions, types, objects, expressions and statements.

For an overview of the most common keywords and statements available from ECMA, see JavaScript keywords and statement syntax on page 8. Elements of basic JavaScript relevant to After Effects scripting JavaScript variables Scripting shares a global environment, so any script executed at startup can define variables and functions that are available to all scripts. Scripters should be careful about giving variables in scripts unique names, so that a script does not inadvertently reassign global variables intended to persist throughout a session.

JavaScript keywords and statement syntax Although it is not possible to provide an exhaustive resource describing usage of JavaScript, the following tables provide an overview of keywords, statements, operators, precedence, and associativity. The following table lists and describes all keywords and statements recognized by the After Effects scripting engine.

Standard JavaScript; cease execution of the current loop iteration. Label used in a switch statement. Label used in a switch statement when a case label is not found. Standard JavaScript construct. Similar to the while loop, except loop condition evaluation occurs at the end of the loop. Literal representing the Boolean false value. Standard JavaScript loop construct. Provides a way to easily loop through the properties of an object. Used to define a function. Standard JavaScript conditional constructs.

Standard JavaScript constructor statement. Assigned to a variable, array element, or object property to indicate that it does not contain a legal value. Standard JavaScript way of returning a value from a function or exiting a function. Standard JavaScript way of evaluating a JavaScript expression and attempting to match the expression s value to a case label.

Standard JavaScript method of indicating the current object. Literal representing the Boolean true value. Indicates that the variable, array element, or object property has not yet been assigned a value.

Standard JavaScript syntax used to declare a local variable. Similar to the do Standard JavaScript construct used to specify an object to use in subsequent statements. JavaScript operators The following tables list and describe all operators recognized by the After Effects scripting engine and show the precedence and associativity for all operators.

Table 2 Operators new delete typeof void of Operators Allocate object. Deallocate object. Structure member. Function call. Pre- or post-decrement. Unary negation or subtraction. Logical NOT. Bitwise XOR. Bitwise OR. Logical OR.? Hierarchy diagram of the main After Effects scripting objects ExtendScript also defines the ScriptUI module, a set of window and user-interface control objects, which are available to After Effects scripts.

These are also documented in the JavaScript Tools Guide. The hierarchy of objects in scripting corresponds to the hierarchy in the user interface. The application contains a Project panel, which displays a project. The project contains compositions, which contain layers. The source for a layer can be a footage file, placeholder, or solid, also listed in the Project panel. Each layer contains settings known as properties, and these can contain markers and keyframes. The render queue contains render-queue items as well as render settings and output modules.

All of these entities are represented by objects in scripting. Object summary The following table lists all objects alphabetically, with links to the documentation page for each.

Object Global functions on page 14 Application object on page 17 AVItem object on page 30 AVLayer object on page 38 CameraLayer object on page 50 Collection object on page 51 CompItem object on page 52 Globally available functions that allow you to display text for script debugging purposes, and help convert time values between seconds and frames.

A single global object, available by its name app , that provides access to objects and application settings within the After Effects application.

Represents those layers that contain AVItem objects composition layers, footage layers, solid layers, text layers, and sound layers. Represents a camera layer within a composition. Associates a set of objects or values as a logical group and provides access to them by index. Represents a composition, and allows you to manipulate it and get information about it. Represents a folder in the Project panel.

Represents a footage item imported into a project, which appears in the Project panel. Describes the file source of some footage. Encapsulates options for importing files into After Effects. Represents an item in a project that appears in the Project panel. Collects items in a project.

Encapsulates keyframe ease values in an After Effects property. A base class for layer classes. Collects layers in a project. Represents a light layer within a composition. Encapsulates marker values in an After Effects property. Encapsulates mask attributes in a layer.

Collects output modules in a render queue. Represents an output module for a render queue. Describes a placeholder for footage. Represents an After Effects project. Represents an After Effects property. A base class for After Effects property and property group classes. Represents an After Effects property group.

Represents the After Effects render queue. Represents a renderable item in a render queue. Collects render-queue items in a render queue. Provides access to application settings and preferences. Encapsulates the outline shape information for a mask.

Represents a shape layer within a composition. Describes a solid color that is the source of some footage. Provides access to the operating system from the application. Encapsulates the text in a text layer. Represents a text layer within a composition. Represents a Composition, Layer, or Footage panel. Any JavaScript object or function can call these functions, which allow you to display text in a small 3-line area of the Info panel, and to convert numeric time values to and from string values.

Global function clearoutput currentformattotime timetocurrentformat write writeln isvalid Clears text from the Info panel. Converts string time value to a numeric time value. Converts a numeric time value to a string time value. Writes text to the Info panel, with no line break added. Writes text to the Info panel, adding a line break at the end. When true, the specified object exists. For example, if the formatted frame time value is the exact string format is determined by a project setting , and the frame rate is 24 fps, the time would be 0.

If the frame rate is 30 fps, the time would be 0. If the time is a duration, the frames are counted from 0. Otherwise, the frames are counted from the project s starting frame see Project displaystartframe attribute on page The frames-per-second, a floating-point value. When true, the time is a duration measured from frame 0. When false the default , the time is measured from the project s starting frame. Floating-point value, the number of seconds. Some operations, such as the PropertyBase moveto method, might invalidate existing variable assignments to related objects.

This function allows you to test whether those assignments are still valid before attempting to access them. For example, if the time is 0. If the frame rate is 30 fps, the frame would be The format of the timecode string is determined by a project setting. Creates and returns a new FolderItem object and adds it to this collection. Parameters name A string containing the name of the folder. Returns FolderItem object. The constructor creates a KeyframeEase object.

Both parameters are required. Sets the sp e e d attribute. Sets the i n f lu e n c e attribute. Example This example assumes that the Position, a spatial property, has more than two keyframes. KeyframeEase influence attribute myKe y. The units depend on the type of keyframe, and are displayed in the Keyframe Velocity dialog box.

Layers contain AE properties, in addition to their JavaScript attributes and methods. Example If the first item in the project is a CompItem, this example disables the first layer in that composition and renames it. This might, for example, turn an icon off in the composition. Layer active attribute app. For this to be true, the layer must be enabled, no other layer may be soloing unless this layer is soloed too, and the time must be between the i n Poi nt and out Poi nt values of this layer.

This value is never true in an audio layer; there is a separate au d i oAc t ive attribute in the AVLayer object. Layer activeAtTime method app. To return true, the layer must be enabled, no other layer may be soloing unless this layer is soloed too, and the time must be between the i n Poi nt and out Poi nt values of this layer. Layer applyPreset method app app. Predefined animation preset files are installed in the Presets folder, and users can create new animation presets through the user interface.

Layer comment attribute app. Layer containingComp attribute app. Type CompItem object; read-only. The original layer remains unchanged. Creates a new Layer object with the same values as this one, and prepends the new object to the l aye rs collection in the target CompItem. Retrieve the copy using into C omp. Copying in a layer changes the index positions of previously existing layers in the target composition.

This is the same as copying and pasting a layer through the user interface. Parameters i ntoC omp The target composition, and CompItem object. Layer duplicate method app. Creates a new Layer object in which all values are the same as in this one. Layer enabled attribute app. This corresponds to the video switch state of the layer in the Timeline panel.

Layer hasVideo attribute app. Layer index attribute app. Layer inPoint attribute app. Type Floating-point value in the range [ Layer isNameSet attribute app.

Layer locked attribute app. This corresponds to the lock toggle in the Layer panel. Layer moveAfter method app. Layer moveBefore method app. Parameters l aye r The target layer, a layer object in the same composition. Layer moveToBeginning method app.

Layer moveToEnd method app. By default, this is the same as the Source name which cannot be changed in the Layer panel , but you can set it to be different. Layer nullLayer attribute app. Layer outPoint attribute app. Layer parent attribute app.

Offset values are calculated to counterbalance any transforms above this layer in the hierarchy, so that when you set the parent there is no apparent jump in the layer’s transform. For example, if the new parent has a rotation of 30 degrees, the child layer is assigned a rotation of degrees. To set the parent without changing the child layer’s transform values, use the s e t Pare nt Wit h Ju mp method.

Layer selectedProperties attribute app. Type Array of PropertyBase objects; read-only. Layer setParentWithJump method app. If you do not want the child layer to jump, set the p are nt attribute directly. In this case, an offset is calculated and set in the child layer’s transform fields, to prevent the jump from occurring.

Parameters n e w Pa re nt Optional, a layer object in the same composition. If not specified, it sets the parent to None. Layer shy attribute app. Layer solo attribute app. Layer startTime attribute app. Layer stretch attribute app. A value of means no stretch. Values between 0 and 1 are set to 1, and values between -1 and 0 not including 0 are set to Layer time attribute app.

Type Floating-point value; read-only. The LayerCollection belonging to a CompItem object contains all the layer objects for layers in the composition. The methods of the collection object allow you to manipulate the layer list.

All methods and attributes of Collection, in addition to those listed below, are available when working with LayerCollection. Example Given that the first item in the project is a CompItem and the second item is an AVItem, this example shows the number of layers in the CompItem’s layer collection, adds a new layer based on an AVItem in the project, then displays the new number of layers.

This method generates an exception if the item cannot be added as a layer to this CompItem. Parameters ite m The AVItem object for the item to be added. Used only if the item contains a piece of still footage. Has no effect on movies, sequences or audio. If supplied, sets the du r at i on value of the new layer.

Otherwise, the duration value is set according to user preferences. By default, this is the same as the duration of the containing CompItem. Returns AVLayer object. LayerCollection addBoxText method app. To create a point text layer, use the a dd Te x t method. Parameters s ou rc e Te xt Optional; a string containing the source text of the new layer, or a TextDocument object contain- ing the source text of the new layer. Returns TextLayer object.

LayerCollection addCamera method app. Parameters name A string containing the name of the new layer. The z value is set to 0. Returns CameraLayer object. LayerCollection addLight method app. Returns LightLayer object. LayerCollection addNull method app. Parameters du r at i on Optional, the length of a still layer in seconds, a floating-point value.

Otherwise, the du r at i on value is set according to user preferences. LayerCollection addShape method app. Use the ShapeLayer object to add properties, such as shape, fill, stroke, and path filters. Tools automatically add a vector group that includes Fill and Stroke as specified in the tool options. Returns ShapeLayer object. LayerCollection addSolid method app. Creates a new AVLayer object, sets the new FootageItem as its s ou rc e , and adds the layer to this collection.

Parameters c ol or The color of the solid, an array of three floating-point values, [R, G, B], in the range [0. LayerCollection addText method app.

To create a paragraph box text layer, use the a dd B oxTe x t method. LayerCollection byName method app. Parameters name A string containing the name. Returns Layer object or null. LayerCollection precompose method app. It removes the individual layers from this collection, and adds the new CompItem to this collection. Parameters l aye r Indi c e s The position indexes of the layers to be collected. An array of integers. When true the default , retains all attributes in the new composition.

You can only set this to false if there is just one index in the l aye r Ind i ce s array. All methods and attributes of Layer are available when working with Light- Layer. LightLayer lightType attribute app. Trying to set this attribute for a non-light layer produces an error.

Create it with the constructor; all arguments except com me nt are optional. All arguments are strings that set in the corre- sponding attributes of the returned MarkerValue object, except p ar ams. This is an array containing key-value pairs. A script can set any number of parameter pairs; the order does not reflect the order displayed in the application.

To associate a marker with a layer, set the MarkerValue object in the Marke r AE property of the layer: laye rO bj ec t. Chapter links initiate a jump to a chapter in a QuickTime movie or in other formats that support chapter marks. MarkerValue comment attribute app. This comment appears in the Timeline panel next to the layer marker. MarkerValue cuePointName attribute app. MarkerValue duration attribute app.

The duration appears in the Timeline panel as a short bar extending from the marker location. MarkerValue frameTarget attribute app. Together with the URL value, this targets a specific frame within a Web page. MarkerValue getParameters method app. MarkerValue setParameters method app. A cue point can have any number of parameters, but you can add only three through the user interface; use this method to add more than three parameters.

Parameters ke y Va lu e Pai rs An object containing the key-value pairs as attributes and values. This URL is an automatic link to a Web page. All methods and attributes of PropertyBase and PropertyGroup, in addition to those listed below, are available when working with MaskPropertyGroup. Type Array of three floating-point values, [R, G, B], in the range [0. MaskPropertyGroup inverted attribute app.

MaskPropertyGroup maskFeatherFalloff attribute app. One of: Mask Mo de. A DD Mask Mo de. One of: Mas k Mot i on Blu r. ON Mask Mot i on Blu r. The collection provides access to the OutputModule objects, but does not provide any additional functionality. The first OutputModule object in the collection is at index position 1. All methods and attributes of Collection are available when working with OMCollection.

Parameters te mpl ate Name A string containing the name of the template to be applied. OutputModule name attribute app. OutputModule postRenderAction attribute app. OutputModule saveAsTemplate method app. Parameters name A string containing the name of the new template. OutputModule templates attribute app. PlaceholderSource is a subclass of FootageSource. All methods and attributes of FootageSource are available when working with PlaceholderSource.

PlaceholderSource does not define any additional methods or attributes. Attributes provide access to specific objects within the project, such as imported files or footage and compositions, and also to project settings such as the timecode base. Methods can import footage, create solids, compositions and folders, and save changes. Type Item object or null; read-only. Project autoFixExpressions method app.

Parameters oldText The text to replace. Project bitsPerChannel attribute app. Project close method app. Parameters clos e O pt ions Action to be performed on close. Cl os eO pt ions. True on success. False if the file has not been previously saved, the user is prompted, and the user cancels the save. Project consolidateFootage method app. Returns Integer; the total number of footage items removed. Project feetFramesFilmType attribute app. Use this attribute instead of the old t i me c o d e Fi l mTyp e attribute.

M M 3 5 Project file attribute app. Type File object or null if project has not been saved; read-only. Project footageTimecodeDisplayStartType attribute app. Project framesUseFeetFrames attribute app. Project importFile method app. Parameters i mp or t O pt i ons An ImportOptions object specifying the file to import and the options for the operation. Returns FootageItem object. Returns Array of Item objects created during import; or null if the user cancels the dialog box. Project importPlaceholder method app.

Returns PlaceholderItem object. Project item method app. Parameters index The index position of the item, an integer. Project items attribute app. Project linearBlending attribute app. Project numItems attribute app. Returns Integer; the total number of items removed. Returns Integer; the total number of FootageItem objects removed.

Project renderQueue attribute app. Type RenderQueue object; read-only. Project rootFolder attribute app. Type FolderItem object; read-only. Project save method app. If the project has never previously been saved and no file is specified, prompts the user for a location and file name. Pass a File object to save a project to a new file without prompting. An ExtendScript File object for the file to save.

The user can name a file with a location and save the project, or click Cancel to exit the dialog box. Returns Boolean; true if the project was saved. Project selection attribute app. Type Array of Item objects; read-only. Project showWindow method app. Parameters d o Show When true, show the Project panel. When false, hide the Project panel.

Project timeDisplayType attribute app. One of: Ti me Di spl ay Typ e. Project xmpPacket attribute app. Example The following example code accesses the XMP metadata of the current project, and modifies the Label project metadata field.

An AE property is an value, often animatable, of an effect, mask, or transform within an individual layer.

All methods and attributes of PropertyBase, in addition to those listed below, are available when working with Property. Rotation properties are stored as a OneD value. Parameters t i me The time, in seconds, at which to add the keyframe. The beginning of the composition is 0.

Returns Integer; the index of the new keyframe or marker. Property canSetExpression attribute app. Property dimensionsSeparated attribute app. Property expression attribute app. Writeable only when c an S e t E xpre s s i on for the named property is true. When you specify a value for this attribute, the string is evaluated. Property expressionEnabled attribute app. When false, the keyframe information or static value of the property is used. This attribute can be set to true only if c an S e t E xpre ss i on for the named property is true and e x pre ss i on contains a valid expression string.

Property expressionError attribute app. If no expression string has been specified, or if the last expression string evaluated without error, contains the empty string “”. Property getSeparationFollower method app. For example, you can use this method on the Position property to access the separated X Position and Y Position properties. Parameters dim The dimension number starting at 0. Returns Property object, or an error if the property is not multidimensional or does not have the specified dimension.

Property hasMax attribute app. Property hasMin attribute app. Property isInterpolationTypeValid method app. Property isSeparationFollower attribute app. For example, the X Position property has this attribute set to true. Property isSeparationLeader attribute app.

For example, the Position property has this attribute set to true. Examples are position and effect point controls. Property isTimeVarying attribute app. When this attribute is true, the attribute c an Var y O ve r Ti m e must also be true. Property keyInInterpolationType method app. Parameters ke y Ind e x The index for the keyframe. Property keyInTemporalEase method app. TwoD , the array contains 2 objects. T h re e D , the array contains 3 objects. Property keyOutInterpolationType method app.

Property keyOutTemporalEase method app. Property keyRoving method app. The first and last keyframe in a property cannot rove; if you try to set roving for one of these, the operation is ignored, and ke yR ov ing continues to return false.

Property keySelected method app. Property keySpatialAutoBezier method app. This type of interpolation affects this keyframe only if ke y Sp at i a l C ont i nu ou s ke yInde x is also true. Property keySpatialContinuous method app. Property keyTemporalAutoBezier method app. Temporal auto-Bezier interpolation affects this keyframe only if the keyframe interpolation type is Ke y f ra – meInter p ol at ionTyp e. Property keyTemporalContinuous method app. Temporal continuity affects this keyframe only if keyframe interpolation type is Ke y f rame Inte r p ol a- t i onTyp e.

Property keyTime method app. Returns Floating-point value. Property keyValue method app. If no keyframe or marker can be found that matches the argument, this method generates an exception, and an error is displayed.

Returns Floating-point value for keyframes, MarkerValue object for markers. Property maxValue attribute app. If the h a s Ma x attribute is false, an exception occurs, and an error is generated. Property minValue attribute app.

If the hasMin attribute is false, an exception occurs, and an error is generated. Property nearestKeyIndex method app. Parameters t i me The time in seconds; a floating-point value. Returns Integer. Property numKeys attribute app. If the value is 0, the property is not being keyframed. Property propertyIndex attribute app. The first property is at index position 1. Property propertyValueType attribute app.

The Prop e r t yVa lu e Ty p e enumeration has one value for each type of data that can be stored in or retrieved from a property. Each type of data is stored and retrieved in a different kind of structure. All property objects store data according to one of these categories. For example, a 3D spatial property such as a layer’s position is stored as an array of three floating point values.

When setting a value for position, pass in such an array, as follows: my l aye r. For example, an Anchor Point value might be [ T h re e D Array of three floating-point quantitative values. For example, a Scale value might be [ Two D Array of 2 floating-point quantitative values. For example, a Scale value might be [5. O n eD A floating-point value. For example, [0. Property removeKey method app. If no keyframe with the specified index exists, generates an exception and displays an error.

When a keyframe is removed, the remaining index numbers change. To remove more than one keyframe, you must start with the highest index number and work down to the lowest to ensure that the remaining indices reference the same keyframe after each removal. Property selectedKeys attribute app.

If no keyframes are selected, or if the property has no keyframes, returns an empty array. Type Array of integers; read-only. Property separationDimension attribute app. The first dimension starts at 0. For example, the Y Position property has a s e p ar at i on D i m e n s i on value of 1; X Position has a value of 0. Property separationLeader attribute app. Type Property object; read-only. Property setInterpolationTypeAtKey method app. Property setRovingAtKey method app. Property setSelectedAtKey method app.

Property setSpatialContinuousAtKey method app. Property setSpatialTangentsAtKey method app. An array of 2 or 3 floating-point values. When this is turned on, it affects this keyframe only if ke y Sp at i a l C ont i nu ou s k e y Inde x is also true. Property setTemporalContinuousAtKey method app. When temporal continuity is turned on, it affects this keyframe only if the keyframe interpolation type is Ke y f r ame Inte r p ol at i onTyp e.

Property setTemporalEaseAtKey method app. An array of 1, 2, or 3 KeyframeEase objects. Two D , the array contains 2 objects. If not supplied, the outgoing ease is set to the i nTe mp or a – l E as e value. Property setValue method app. If the named property has keyframes, this method generates an exception and displays an error. If the named property has no keyframes, or no keyframe with the specified index, this method generates an exception and displays an error.

Property setValueAtTime method app. Creates a new keyframe for the named property, if one does not currently exist for the specified time, and sets its value. Parameters t i me The time in seconds, a floating-point value. Property setValuesAtTimes method app. Creates a new keyframe for the named property, if one does not currently exist for a specified time, and sets its value.

Times and values are expressed as arrays; the arrays must be of the same length. Parameters t i me s An array of times, in seconds. Each time is a floating-point value. The beginning of the compo- sition is 0. Property unitsText attribute app. Property value attribute app. The type of value returned depends on the property value type. Property valueAtTime method app. Note that the type of value returned is not made explicit; it will be of a different type, depending on the property evaluated.

When false, return the result of evaluating the expression for the specified time. Ignored if the property does not have an associated expression. Reference invalidation When something occurs that changes an object sufficiently for the reference to become invalid, script refer- ences to that object can generate errors. In simple cases this is straightforward. In this case, After Effects generates the “Object is Invalid” error when you subsequently reference that item or other items in the group, because their index positions have changed.

PropertyBase canSetEnabled attribute app. Generally, this is true if the user interface displays an eyeball icon for this property; it is true for all layers. PropertyBase duplicate method app. If this property is not a child of an indexed group, the method generates an exception and displays an error. An indexed group has the type Prop e r t y Ty p e. Returns PropertyBase object.

PropertyBase elided attribute app. The property is not displayed in the user interface and its child properties are not indented in the Timeline panel.

Leave a Comment