PR Scripting QE .getItemAt() not working properly
I am using the getVideoTrackAt and getItemAt methods to apply an effect to a clip. However it is only working when using the first clip on any given track. Also, the indices required seem to not be working, unless I am missing something simple. The videoTrack I am storing is working fine, but when I try to get any other item besides the first, it gives me undefined. Here is my simple project setup and code:

app.enableQE();
var clip;
var thisTrack = qe.project.getActiveSequence().getVideoTrackAt(1);
clip = thisTrack.getItemAt(0);
// gives me undefined
clip = thisTrack.getItemAt(1);
// gives me the first clip in the track
clip = thisTrack.getItemAt(2);
// gives me undefined
