Expresión que recorre los layers.

Compo=thisComp;
if (time >0 && Compo.layer(1).outPoint > time )
{
a=Compo.numLayers;
while (a >0 && Compo.layer(a).inPoint<=time)
{
a=a-1;
}
//Aqui Compo.layer(a+1) es el layer actual
layerActual=Compo.layer(a+1);
// Se realiza lo que haya que realizar
}
else
{
//caso nulo
}

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>