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 3, 2015 at 8:38:43 am

For acomplish that you need to edit removeFill() function to be recursive, in pseudo pseudo-code something like this:

function removeFill(node):
if node[i].numProperties > 0 do->
for nodes in node do->
if node[i] is shape do-> remove fill
else if do -> removeFill(node[i])

removeFill(contents)

For sure you will need to work on it, because accesing properties on shape layer can be tricky. I recomend you to make a "prototype layer" with saveral shapes on diferent levels(as messy as you can to check the "worst case") and start accesing manualy to each property by index to see the structure .


Posts IndexRead Thread 


Current Message Thread:





© 2019 CreativeCOW.net All Rights Reserved
[TOP]