Replaced line endings to Unix-like for consistency
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user