Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PPRO] Apply custom LUT as effect #501

Open
SultanDino opened this issue Oct 25, 2023 · 5 comments
Open

[PPRO] Apply custom LUT as effect #501

SultanDino opened this issue Oct 25, 2023 · 5 comments

Comments

@SultanDino
Copy link

We have developed a Premiere Pro extension with which we fetch a custom lut file and apply it as a effect in Lumetri Color (Creative or Basic).

Starting from Premiere pro 23.4, the functionality to apply a custom lut programmatically has stopped working and I can't figure out why. I already tried various settings and changes, but I am running out of ideas. Something have changed in Adobes API and the way it applies custom LUT files.

Here is a list of PPRO versions with which the extension worked fine:
22.5 | Working
23.0 | Working
23.1 | Working
23.2 | Working
23.3 | Working
23.4 | Not working
23.5 | Not working
23.6 | Not working
24.0 | Not working

I already wrote about it in the Adobe forum.
Maybe someone can help me and give me some information on how to get this to work?

@SultanDino
Copy link
Author

SultanDino commented Oct 25, 2023

Here is the code sample from ExtendScript with which I loop through the Effect's properties to apply a custom LUT as Basic Correction

for (var i = 0; i < effect.properties.numItems; i++) {
  if (effect.properties[i].displayName == "Basic Correction") {
      effect.properties[i + 1].setValue(1, true); // Enable effect
      effect.properties[i + 2].setValue(LUTPath, true); // Set LUT Path
      effect.properties[i + 4].setValue(1, true); // Update LUT selection dropdown
  }
}

@tristancgardner
Copy link

agreed, and it's terribly aggravating.

@ErinFinnegan
Copy link
Contributor

@tristancgardner so it's still happening, I take it?

@bbb999 and @justintaylor-dev investigated it in the forum thread...

@justintaylor-dev
Copy link

@SultanDino @tristancgardner @ErinFinnegan

I just tested in PPRO 25.1.0 and it's still working. Here's an example of how to set the LUT path for the Input LUT on a clip and a project item / master clip

// Clip Example
var clip = app.project.activeSequence.videoTracks[1].clips[0];
var pathToLut = 'C:\\Program Files\\Adobe\\Adobe Premiere Pro 2024\\Lumetri\\LUTs\\Technical\\Phantom_Rec709_Gamma.cube';
var lumetri = clip.components[2];
var lutPath = lumetri.properties[4];
var input = lumetri.properties[6];
lutPath.setValue(pathToLut);
input.setValue(1);
// Project item / Master Clip Example
var projectItem = app.project.activeSequence.videoTracks[0].clips[0].projectItem;
var pathToLut = 'C:\\Program Files\\Adobe\\Adobe Premiere Pro 2024\\Lumetri\\LUTs\\Technical\\Phantom_Rec709_Gamma.cube';
var lumetri = projectItem.videoComponents()[0];
var lutPath = lumetri.properties[4];
var input = lumetri.properties[6];
lutPath.setValue(pathToLut);
input.setValue(1);

If you're still having issues, maybe try different path formats, they seem to be picky per OS.

@sir-editor
Copy link

I've tested on macOS and Windows.
It works technically: if I will test values with getValue I will get correct results.
However, visually media is not affected by an applied LUT.

PPRO 22.6.4 [mac] - works
PPRO 24.0.0 [win] - doesn't work visually
PPRO 25.1.0 [mac] - doesn't work visually

CleanShot 2025-01-10 at 13 06 36

@justintaylor-dev do you see media being affected by LUT?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants