Skip to main content
Participant
July 5, 2011
Question

replace Footage file by script

  • July 5, 2011
  • 1 reply
  • 4448 views

in a project you can replace a footage file by pressing Ctrl+H when you select a footage. i want to replace a footage by the script. there is a command in javascript like "app.project.item(10).file.name" that return the file name of the footage, but it's readonly and i can't "app.project.item(10).file.name='test.avi' " so does anyone know how can i solve my problem?

This topic has been closed for replies.

1 reply

Dan Ebberts
Community Expert
Community Expert
July 5, 2011

Using your example, it's going to look like this:

var myPath = "c:/test.avi";
app.project.item(10).replace(File(myPath));

Dan