ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Getting all the shape layers

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Kabo Lam
Getting all the shape layers
on Sep 18, 2017 at 11:58:23 am

Hi,
Is there any way I can call out the shape layers in my comp?
something like:

if(thisComp.this is a shape layer){
sum up all the shapelayer.content("rectangle 1").size
}else{ do nothing
};

Always learning


Return to posts index

Dan Ebberts
Re: Getting all the shape layers
on Sep 18, 2017 at 1:09:19 pm

Some variation of this, probably:


sz = [0,0];
for (i = 1; i <= thisComp.numLayers; i++){
try{
sz += thisComp.layer(i).content("Rectangle 1").content("Rectangle Path 1").size;
}catch(e){
}
}
sz



Dan



Return to posts index

Kabo Lam
Re: Getting all the shape layers
on Sep 19, 2017 at 7:58:31 am

Thanks you so much Dan Ebberts, it works great!

Always learning


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]