Copy link to clipboard
Copied
I'm trying to write a script that checks the lumetri vector scope values for each clip in a sequence and my question is if it's possible to get those values via javacript and how? I did some research on the web and found this thread:
I wrote a script based on that first answer. The problem is, it seems that my clips don't have the "AE.ADBE Lumetri" component that supposedly holds the values that i need which is weird because i can actually see the lumetri values in premiere for each clip.
Here is my current code:
function find_active_clips(){
var activeSequence = app.project.activeSequence;
var videoTracks = activeSequence.videoTracks;
var currentTrack;
var currentClips;
var activeClips = [];
for(var i = 0;i < videoTracks.numTracks;i++){
currentTrack = videoTracks[i];
currentClips = currentTrack.clips;
for(var j=0;j < currentClips.numItems;j++){
activeClips.push(currentClips[j]);
}
}
return activeClips;
}
var clips = find_active_clips();
//Adapted from https://community.adobe.com/t5/premiere-pro-discussions/javascript-api-for-premiere-pro/m-p/9020108#M76294
for(var i=0; i < clips.length ;i++){
var clipComponents = clips[i].components;
if (clipComponents){
for (var cc = 0; cc < clipComponents.numItems; ++cc) {
if(clipComponents[cc].displayName == "Lumetri Color"){
var componentProperties = clipComponents[cc].properties;
for (var cp = 0; cp < componentProperties.numItems; ++cp){
$.writeln('param ' + cp + ' = ' + componentProperties[cp].displayName);
}
}
}
}
}
Have you applied the Lumetri effect to the trackItems ('clips') in question?
Not all parameter types are exposed to scripting; [above] are such parameters.
Copy link to clipboard
Copied
Have you applied the Lumetri effect to the trackItems ('clips') in question?
Copy link to clipboard
Copied
Yes i've applied the lumetri effect in the track items and now the info show up. Problem is,the lumetri parameters have exactly the same value for every track item(white balance,saturarion,etc...).
After digging lot in both the official javascript api and the DOM one, it's seems that there is no clear way to do what i want. To be clear,i want to get the vectorscope color values and check if it's below a certain threshold.
I want to get this values with javascript :
.
Copy link to clipboard
Copied
Not all parameter types are exposed to scripting; [above] are such parameters.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now