Adobe-CEP / CEP-Resources

Tools and documentation for building Creative Cloud app extensions with CEP
https://www.adobe.io/apis/creativecloud/cep.html
1.61k stars 827 forks source link

[PPRO] Apply custom LUT as effect #501

Open SultanDino opened 10 months ago

SultanDino commented 10 months ago

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 commented 10 months ago

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


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
  }
}
SultanDino commented 10 months ago

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

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