Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting
Viewing all articles
Browse latest Browse all 2143

Can't find a way to put a property as an argument in a function

$
0
0

Hi,

I didn't find a way to put a property (position, anchorPoint etc.) as an argument in a function.

I tried:

It's a function inside a loop.

 

function loopArray(theArray,layers,theProp,n){

     for (var j=0; j<theArray.length; j++){

          layers[n].theProp.setSelectedAtKey(parseInt(theArray[j]),true);

     }

}

for (var i=0; i<layers.length; i++){

     loopArray(anotherArray,someLayers,AnchorPoint,i);

}

 

It does't work.

 

Thx in advance

 

Candos


Viewing all articles
Browse latest Browse all 2143

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>