title: For loop in Adobe ExtendScript
body: <p>my for-loop in the "setEase" function won't increase "i"</p>
  
  <pre><code>function storeKeyframes(){
              var properties      = app.project.activeItem.selectedProperties;
              var activeProperty  = null;
              var keySelection    = null;
              var curKey          = null;
              var curKeyTime      = null;
              var curKeyIndex     = null;
  
              var theEase         = new KeyframeEase(0 , slider_1_slider.value);
  
              for (var i = 0; i &lt; properties.length; i++){
                  activeProperty = properties[i];
                  setEase();
              }
  
              function setEase(){
                  for (var i = 0; i &lt; activeProperty.selectedKeys.length ; i++){
                      keySelection    = activeProperty.selectedKeys;
                      curKey          = keySelection[i];
                      curKeyTime      = activeProperty.keyTime(curKey);
                      curKeyIndex     = activeProperty.nearestKeyIndex(curKeyTime);
  
                      activeProperty.setInterpolationTypeAtKey(curKeyIndex, KeyframeInterpolationType.BEZIER, KeyframeInterpolationType.BEZIER);
                      activeProperty.setTemporalEaseAtKey(curKeyIndex,theEase, theEase);
                  }
              }
          }
  </code></pre>
  
  <p>I just can't figure out why. Am I missing something?</p>