-
Attemping to disable all expressions in selected comp using Extendscript
Hi there. I’m trying to write a little script that disable every single expression in every layer of a selected comp. I’m having trouble finding a method or function that is able to look at every property, no matter what it is, and disable it. I’ve gotten as far as being able to disable a selected property, but it would be great to have a script that could disable expressions on a mass scale by itself. Any help appreciated, thank you!
var activeComp = app.project.activeItem;
app.beginUndoGroup('Disable Expressions');for(var i = 0; i < activeComp.selectedProperties.length; i++) {
var property = activeComp.selectedProperties[i];
if(property.expressionEnabled === true) {
property.expressionEnabled = false;
}else{}
}
app.endUndoGroup();