-
Replace multiple footage Items with Placeholder Script
Hi,
Im working on a project that involve a repetitive task and I will be on that project for 2 more months. There is no way to select multiple footage and perform a replace with placeholder for each. Only one at a time.
The Problem:
I select footage items in the project window. Right-click. Replace with / PlaceHolder.
Then I need to change the resolution and frame rate. I leave the name and duration as is. And I do this 30 times a day. It’s several 3d passes. A kind of batch replace with placeholder script would be helpful. Does a script already exist? My research have been unsuccessful.
Here is my first attempt at scripting. I’m still getting errors for item.name and item.duration, and after that, nothing happens.??
Could someone help me debug this.
Thanks/// This script replace multiple footage item with a placeholder. Well... not yet!/// project variables
var project = app.project;
var item = project.item.selected;// placeholder variables and predefined values
var name = item.name;
var width = 3840;
var height = 2160;
var frameRate = 30;
var duration = item.duration;// function to replace with placeholder
function(){
app.beginUndoGroup("replace with place holder");for(var i = 1; i <= project.numItems; i++){
if(project.item(i) instanceof FootageItem){
project.item(i).replaceWithPlaceholder(name, width, height, frameRate, duration);
}
}app.endUndoGroup();
alert("Successfully replace");
}