With ExtendScript, how to set the "Input File" or "Look" in Lumetri with a external blob?

Community Beginner ,
Mar 23, 2022 Mar 23, 2022

Copy link to clipboard

Copied

I am able to set the Look by providing a index number which reprensents the menu option from the dropdown

app.project.activeSequence.videoTracks[0].clips[0].components[2].properties[32].setValue(5, true);

 

Is there a way to load a LUT as blob programatically and set it for the Look? Maybe somehow initiate the "Browse" option and programatically inject the the blob's path?

 

Checking this document about the Lumetri properties, on index 0 there is the Blob property, but I don't know what it is for? Reading the value from that property gives me some weird output like:

 

䰼浵瑥楲ਾ†朼極㹤攢㌸捣㙢ⴰ慡ㄱㄭ攱ⵣ㘹ㄳ㌭昸搹戳ㄶ㥣≥⼼畧摩ਾ†瘼牥楳湯∾∳⼼敶獲潩㹮 㰠慮敭∾㰢港浡㹥 㰠敫晹慲敭ਾ††琼浩㹥〢㰢琯浩㹥 †㰠睴敥㹮〢㰢琯敷湥ਾ††攼獡楥㹮ㄢ㰢支獡楥㹮 †㰠慥敳畯㹴ㄢ㰢支獡潥瑵ਾ††猼汥捥整汤祡牥∾∰⼼敳敬瑣摥慬敹㹲 †㰠桳摡牥ਾ†††渼浡㹥弢䝟潲灵敂楧≮⼼慮敭ਾ†††挼獵潴湭浡㹥弢䝟潲灵敂楧≮⼼畣瑳浯慮敭ਾ†††瘼獩扩敬∾∱⼼楶楳汢㹥 ††㰠潬正摥楶楳汢㹥〢㰢氯捯敫癤獩扩敬ਾ†††漼慰楣祴∾∱⼼灯捡瑩㹹 ††㰠慭歳∾∰⼼慭歳ਾ†††瘼捥潴浲獡㹫〢㰢瘯捥潴浲獡㹫 ††㰠....

 

 

I can't find any solution on the web and there is no much help in the documentation of the API.

 

TOPICS
Effects and Titles , How to , Import , SDK

Views

145

Likes

Translate

Translate

Report

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 1 Correct answer

Adobe Employee , Mar 23, 2022 Mar 23, 2022
>Is there any way a "remote" LUT file can be applied programmatically in the Lumetri panel? No, there is no API that allows for that. Justin wrote:  >I still couldn't get it to work, which leads me to believe that there are some other processes happening behind the scenes that the scripting API don't have access to. Correct!

Likes

Translate

Translate
Explorer ,
Mar 23, 2022 Mar 23, 2022

Copy link to clipboard

Copied

@Bruce Bullis I would very much like to know as well if this is possible. Is there any way a "remote" LUT file can be applied programmatically in the Lumetri panel? I hope you don't mind me mentioning you, it's just that I was searching for something similar, couldn't find anything and saw that you helped others users with somewhat similar questions.

 

Thanks!

Likes

Translate

Translate

Report

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 Community Professional ,
Mar 23, 2022 Mar 23, 2022

Copy link to clipboard

Copied

In my testing, saving and setting LUT blob data is very complicated, and requires a fair amount of reverse engineering. There were 2 or 3 blob properties that need to be set, and each had it's own method of encryption. Even after seemingly setting these values correctly, I still couldn't get it to work, which leads me to believe that there are some other processes happening behind the scenes that the scripting API don't have access to.

 

However, I came across a much more simple way to get and apply LUTs with the path to a LUT file.

 

You can set the Input LUT by getting the Lumetri video component property, set the 4th prop to the path string, and the 6th prop to 1.

 

var pathToLut = 'path/to/lut.cube';
var lumetri = projectItem.videoComponents()[0];
var lutPath = lumetri.properties[4];
var input = lumetri.properties[6];
lutPath.setValue(pathToLut);
input.setValue(1);

 

Likes

Translate

Translate

Report

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
Explorer ,
Mar 23, 2022 Mar 23, 2022

Copy link to clipboard

Copied

Many thanks. Will test that out.

Likes

Translate

Translate

Report

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
Community Beginner ,
Mar 23, 2022 Mar 23, 2022

Copy link to clipboard

Copied

Thank you Justin for the help.

 

I get a null value for this:

var lumetri = app.project.rootItem.children[1].videoComponents()[0];

 Children[1] is the sequence. 

Is that the proper way of fetching videoComponents?

Likes

Translate

Translate

Report

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 Community Professional ,
Mar 23, 2022 Mar 23, 2022

Copy link to clipboard

Copied

children[1] is just an example, adjust to however you neeed to select your ProjectItem.

Likes

Translate

Translate

Report

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
Explorer ,
Mar 23, 2022 Mar 23, 2022

Copy link to clipboard

Copied

Hi @Justin T - Hyper Brew this works! Thanks a lot! 

Likes

Translate

Translate

Report

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 Community Professional ,
Mar 23, 2022 Mar 23, 2022

Copy link to clipboard

Copied

LATEST

Awesome, sure thing!

Likes

Translate

Translate

Report

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 ,
Mar 23, 2022 Mar 23, 2022

Copy link to clipboard

Copied

>Is there any way a "remote" LUT file can be applied programmatically in the Lumetri panel?

 

No, there is no API that allows for that.

Justin wrote: 

>I still couldn't get it to work, which leads me to believe that there are some other processes happening behind the scenes that the scripting API don't have access to.

Correct!


Likes

Translate

Translate

Report

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 Community Professional ,
Mar 23, 2022 Mar 23, 2022

Copy link to clipboard

Copied

Good to know

Likes

Translate

Translate

Report

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
Explorer ,
Mar 23, 2022 Mar 23, 2022

Copy link to clipboard

Copied

Thank you.

Likes

Translate

Translate

Report

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