1 person found this helpful
This will get a clip name:
app.enableQE(); qe.project.init(); // This will clear out any qe objects so make sure you know when to call it var qeseq = qe.project.getActiveSequence(); var vTrack = qeseq.getVideoTrackAt(0); // Assumes you have clips in the first video track var item = vTrack.getItemAt(0); // Assumes you have clips in the first video track $.writeln(item.name);
But make sure you know the pitfalls of qe
The magic sauce is the init() function. But like I said, any qe based objects will be invalid after calling that function.
Thanks Bruce and Geordiem!
Bruce, does this method not just get the clip's source name? Not the renamed name. I've looked into that method and I can only ever get the name that shows up in the project panel.
For example let's say I have a file "MOV_0002" and if I were to rename just a single instance of that clip in a timeline to "VFX 010", it doesn't change the source name of the file in the project, just that instance of the clip in the timeline. But when I run your suggested method I can only ever get access to the source name "MOV_0002", I can't get access to wherever it stores "VFX 010".
Am I doing something wrong? Or is the QE method the only solution right now?
Thanks a bunch folks, you are all very helpful!
Oddly enough, the QE DOM method is the only way to access the clip name, today.