[READ-ONLY] Mirror of https://github.com/probablykasper/2dcam. After Effects 2d camera
after-effects camera extendscript script
0

Configure Feed

Select the types of activity you want to include in your feed.

2dcam / log_selected_match_names.jsx
1.0 kB 27 lines
1main(); 2function dumpPropTree(rootObj, nestingLevel) { 3 var countProps = rootObj.numProperties; 4 for (var propIndex = 1; propIndex <= countProps; propIndex++) { 5 var prop = rootObj.property(propIndex); 6 $.writeln(Array(nestingLevel * 4).join(" ") + "[" + nestingLevel + "-" + propIndex + "] " + "matchName: \"" + prop.matchName + "\", name: \"" + prop.name + "\""); 7 if (prop.numProperties > 0) 8 dumpPropTree(prop, nestingLevel + 1); 9 } 10} 11function main() { 12 var activeComp = app.project.activeItem; 13 if (activeComp == null) { 14 alert("Error: No active composition"); 15 return; 16 } 17 var countSelectedLayers = activeComp.selectedLayers.length; 18 if (countSelectedLayers == 0) { 19 alert("Error: No selected layer(s)"); 20 return; 21 } 22 for (selectedLayerIndex = 0; selectedLayerIndex < countSelectedLayers; selectedLayerIndex++) { 23 var layer = activeComp.selectedLayers[selectedLayerIndex]; 24 $.writeln("***************** [ Layer: \"" + layer.name + "\" ] *****************"); 25 dumpPropTree(layer, 0); 26 } 27}