-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EF_CountSelectedItems.jsx
26 lines (21 loc) · 967 Bytes
/
EF_CountSelectedItems.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**========================================================================
* ? EF_CountSelectedItems.jsx
* @author : Eveline Falcão (https://evelinefalcao.com)
* @email : [email protected]
* @version : 1.0.0
* @createdFor : Adobe After Effects CC 2024 (Version 24.1.0 Build 78)
* @description : Counts the selected items in the Project Panel and outputs the result to the Info Panel.
*========================================================================**/
(function countSelectedProjectItems(){
var selectedItems = app.project.selection;
// Open Info panel
var infoPanelId = 2028; // app.findMenuCommandId("Info");
app.executeCommand(infoPanelId);
// Clean previous outputs
clearOutput();
if(selectedItems.length != 0){
writeLn("Selected items: " + selectedItems.length);
} else {
alert("Select some project items to count.")
}
})();