ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: Remove all fills in a shape layer?

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Miguel de Mendoza
Re: Remove all fills in a shape layer?
on Sep 2, 2015 at 8:41:22 pm

Try this:

var proj = app.project;
var layer = proj.activeItem.selectedLayers[0];
var contents = layer.property("ADBE Root Vectors Group");

function removeFill(){
if(!layer || !(layer instanceof ShapeLayer)){
alert("Select a shape layer");
return;
}
for(i = 1; i <= contents.numProperties ; i++){
var shape = contents.property(i).property("Contents");
if(shape.property("ADBE Vector Graphic - Fill")){
shape.property("ADBE Vector Graphic - Fill").remove();
}
}
}

removeFill();


Posts IndexRead Thread 


Current Message Thread:





© 2019 CreativeCOW.net All Rights Reserved
[TOP]