-
Notifications
You must be signed in to change notification settings - Fork 0
Custom AE Methods
Alexandre Dagenais edited this page Mar 30, 2016
·
11 revisions
#Custom AE Methods ##FolderItem ####_getAllItems() app.project.rootFolder._getAllItems(_exceptions,_function)
Description
Retreive all the items in a folder and his subfolder(s)
Parameters
| Parameter | Description | optional |
|---|---|---|
| _exceptions | Array containing the name of the folders to ignore. Ex : ["Solids","TEST","X_PROJECT"] | ✓ |
| _operator | Function that you want to execute to each item found. If the _function parameters is not set, this method will return a JSON containing all the items | ✓ |
Returns
JSON with all the items if the _function parameter is _undefined_
{
typeName{
itemID : itemObject
}
}
Example(s)
//list all the composition in the project
app.project.rootFolder._getAllItems().Composition##PropertyGroup ####_removeKeys() app.project.item(index).layer(index).propertyGroup._removeKeys();
Description
Delete all keyframes from a property group
Returns
nothing
Example(s)
app.project.item(1).layer(1).transform._removeKeys()##Property ####_removeKeys() app.project.item(index).layer(index).propertyGroup._removeKeys();
Description
Delete all keyframes from the called property
Returns
nothing
Example(s)
app.project.item(1).layer(1).transform.position._removeKeys();
app.project.item(1).layer(1).property("Scale")._removeKeys();
app.project.item(1).layer(1).marker._removeKeys()##FootageItem