Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #target premierepro
- //This Takes a Video Transition File from the Project Tree "Edit/ScreenWipe.avi"
- //and pastes it in the current player position, -0.5 seconds, in the most Top video layer
- //audio gets imported automatically too
- var seq = app.project.activeSequence;
- var pos = seq.getPlayerPosition();
- pos.seconds -= 0.5;
- seq.setPlayerPosition(pos.ticks);
- var track = seq.videoTracks[seq.videoTracks.numTracks - 1];
- for(var i = 0; i < app.project.rootItem.children.numItems; i++) {
- if(app.project.rootItem.children[i].name == "EDIT"){
- for(var j = 0; j < app.project.rootItem.children[i].children.numItems; j++) {
- if(app.project.rootItem.children[i].children[j].name == "ScreenWipe.avi"){
- track.insertClip(app.project.rootItem.children[i].children[j], pos.seconds);
- break;
- }
- }
- }
- }
- app.project.save();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement