Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

[ExtendScript/Javascript] Getting Lumetri Vectorscope values

New Here ,
Sep 21, 2021 Sep 21, 2021

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:

 

https://community.adobe.com/t5/premiere-pro-discussions/javascript-api-for-premiere-pro/m-p/9020108#...

 

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);
                }
            }
        }
    }
}

 

TOPICS
How to , SDK
538
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Adobe Employee , Sep 22, 2021 Sep 22, 2021

Have you applied the Lumetri effect to the trackItems ('clips') in question? 

Translate
Adobe Employee , Oct 06, 2021 Oct 06, 2021

Not all parameter types are exposed to scripting; [above] are such parameters.

Translate
Adobe Employee ,
Sep 22, 2021 Sep 22, 2021

Have you applied the Lumetri effect to the trackItems ('clips') in question? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 06, 2021 Oct 06, 2021

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 &colon;

 

lumetri_002.PNG

.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Oct 06, 2021 Oct 06, 2021
LATEST

Not all parameter types are exposed to scripting; [above] are such parameters.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines