FolderItem
Properties
00000000-0000-0000-0000-000000000000.orientationType, positionType, position. In After Effects (Beta) 26.5 and later, each entry also has color and pinned, and orientationType/positionType become GuideOrientationType/GuidePositionType enum values instead of raw integers.app.project.rootFolder).true, this item is selected. Multiple items can be selected at the same time. Set to true to select the item programmatically, or to false to deselect it.folderItem.items.length). If the folder contains another folder, only the FolderItem for that folder is counted, not any subitems contained in it.Instance Methods
addGuide
Returns: any
Since: 27.0
Adds a guide to the item's view and returns its index. Two forms: addGuide(orientationType, position) adds a pixel guide using an orientation and pixel position; addGuide(guideOptions) adds a guide described by a GuideOptions object (After Effects (Beta) 26.5+).
getGuideAsObject
Returns: { orientationType: GuideOrientationType; position: number; positionType: GuidePositionType; color: number[]; pinned: boolean }
Since: 27.0
Returns the guide at the specified index as a GuideOptions object, which you can modify and pass back to setGuide(). This is a convenient way to read a guide's full state (orientation, position, position type, color, pinning).
Parameters
item
Returns: Item
Since: 27.0
Returns the top-level item in this folder at the specified index position. Note that "top-level" here means top-level within the folder, not necessarily within the project.
Parameters
remove
Returns: boolean
Since: 27.0
Deletes this item from the project and the Project panel. If the item is a FolderItem, all the items contained in the folder are also removed from the project. No files or folders are removed from the disk.
removeGuide
Returns: boolean
Since: 27.0
Removes an existing guide. Choose the guide based on its index inside the Item.guides array.
Parameters
setGuide
Returns: any
Since: 27.0
Updates an existing guide. Two forms, distinguished by the type of the second argument: setGuide(position, guideIndex) moves the guide at guideIndex to a new pixel position; setGuide(guideIndex, guideOptions) applies the properties set on a GuideOptions object to the guide at guideIndex (partial update, After Effects (Beta) 26.5+). The two forms take their arguments in the opposite order.