Copy link to clipboard
Copied
Recently i am working on a cep which can insert adjustment layer from another project,now the issue is ,when i use the insertclip() function it will always overlap the clip,and i write a very complex code to judge if it can be insert into the specific track;(but it can only insert,not paste)but when i search for other extensions,i found that they do this thing to aviod the issues happened;But i really do not know its function,so can i get your help?Thank you so much!
what i want to do is judge clips.length or somthing like this,if it not = 0,i will not chose that one as a target,so i can paste to the target track.
You know what track to which you want to add the adjustment layer.
Given that, you can walk across the trackItems in that track, and confirm the presence of trackItems at a given time.
Doesn't that give you what you need?
Copy link to clipboard
Copied
When you're working from the Source monitor using Insert or Overwrite, they supposedly operate slightly differently.
If the timeline CTI/playhead is at a cut point, Insert will drop the clip on the track with the left-side Source blue target set active as shown in your image. And will push existing clips to the right.
Overwrite, no matter where the playhead is set, will ... overwrite ... what's on the track with the Source target set.
Neil
Copy link to clipboard
Copied
You know what track to which you want to add the adjustment layer.
Given that, you can walk across the trackItems in that track, and confirm the presence of trackItems at a given time.
Doesn't that give you what you need?