file path for track events

richjo100 wrote on 9/20/2004, 6:34 AM
Hello
i have imported a collection of media files into my timeline and am after a script that will scan through each clip and return the path of the media. I have messed around with the mediapool but can only get the name of the media. This is ok if I am not using subclips that I have created in the trimmer. I will be creating subclips however so ideally want to loop through the video tracks to find the path of each clip.
Is this possible?
Cheers
Richard

Comments

jetdv wrote on 9/20/2004, 7:10 AM
Find the event (assuming in the variable "evnt") and do this:


var MyTake = evnt.ActiveTake;
var MyPath = MyTake.MediaPath;
richjo100 wrote on 9/20/2004, 7:20 AM
Thanks for the quick reply JetDV.
It works on events that are not subclips but on subclips I just get the subclip name; not C:/blah/blah/subclip. I really need to be able to get the name for clips and subclips.

is there a way of checking if an event is a subclip then linking back to the main clip and then getting the file path?

Thanks again

Richard