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

AE's Script Editor logs only the last object in for loop

$
0
0

When I call the following in AE's Script Editor:

 

var arr = [ "a", "b", "c" ];
for(var i=0; i < arr.length; i++) {  arr[i];
}

 

Only the third (last) object is printed in the consol. Is this normal? I mean the whole script runs but only the last object is printed? I would really appreciate if somebody could explain me why don't

 

a
b
c

 

is printed.

 

Is it something that can be adjusted somewhere in the settings?


Viewing all articles
Browse latest Browse all 2143

Trending Articles



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