i need to make an array with clips in it
In a clip you can use some code like
this.myClips = [];
then in other clips that you want to be in the array use
theMainClipWithTheArray.myClips[theMainClipWithTheArray.myClips.length] = this;
replace theMainClipWithTheArray with the name of the clip with the array
then to loop through each clip in the array from the clip where you declared the array
for (let i=0;i<this.myClips.length;i++) {
}
Inside the loop you can access the current clip in the array with this.myClips[i]
Something like this should line up all the clips across the canvas
for (let i=0;i<this.myClips.length;i++) {
this.myClips[i].y = project.height/2;
this.myClips[i].x = (project.width/this.myClips.length)*i;
}