Replaced line endings to Unix-like for consistency

This commit is contained in:
Jorge Vasquez
2020-02-06 10:58:51 -08:00
parent 4beb0730d2
commit 7701646ba8
7 changed files with 807 additions and 5 deletions
+18
View File
@@ -0,0 +1,18 @@
proj = app.project.activeItem;
layers = proj.selectedLayers;
search_string = 'comp("##DSDC036_Colors##").layer("Colors").effect(" ';
replace_string = 'comp("##DSDC036_Colors##").layer("';
for ( var i = 0; i < layers.length ; i ++ ){
var layer = layers[i];
var properties = layer.selectedProperties;
for ( var j = 0 ; j < layer.selectedProperties.length ; j ++ ){
var property = properties[j];
if ( property.canSetExpression ){
property.expression = property.expression.replace(search_string,replace_string);
}
}
}