iterating through selected layers in reverse order
Posted: April 5th, 2006, 1:46 am
sounds simple, but is confusing me.
i thought something like this.
var layerIndices = new Array();
for (var i = layerIndices[layerIndices.length]; i >= 1; i--)
{
layerIndices[layerIndices.length] = myLayers.index;
myLayers.copyToComp(layerComp);
}
but of course i wasn't thinking properly. this is twisting my brain inside out.
can anyone give me an example of how to iterate through selected layers in reverse order?
thankyou in advance...
in the meantime, i shall keep searching/trying to work out the logic behind this.
i thought something like this.
var layerIndices = new Array();
for (var i = layerIndices[layerIndices.length]; i >= 1; i--)
{
layerIndices[layerIndices.length] = myLayers.index;
myLayers.copyToComp(layerComp);
}
but of course i wasn't thinking properly. this is twisting my brain inside out.
can anyone give me an example of how to iterate through selected layers in reverse order?
thankyou in advance...
in the meantime, i shall keep searching/trying to work out the logic behind this.