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

Camera Lens Blur - Extendscript - Accessing Layer control "Effects & Masks" JSX

New Here ,
Sep 17, 2024 Sep 17, 2024

Copy link to clipboard

Copied

Im trying to access the 2nd dropdown menu from Camera Lens Blur Effect Layer

"ADBE Camera Lens Blur-0010"

 

My issue is that I am unable to access the second dropdown, the Source/Masks/Effects & Masks dropdown.  I am trying to automate a process and part of that is changing that dropdown to "Effects & Masks".

 

var lensBlurEffect = deviceScreenTrackLayer.property("Effects").addProperty("Camera Lens Blur");
var blurMapLayerProperty = lensBlurEffect.property("ADBE Camera Lens Blur-0010");
blurMapLayerProperty.setValue(1);
 
I am able to set the layer to index 1 but I am unable to change from "Source" to "Effects & Masks"
 
I just need to know if it is even possible.  Thank you in advance! 

Best,
- David 
TOPICS
Expressions , Scripting

Views

224

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 2 Correct answers

Advocate , Sep 18, 2024 Sep 18, 2024

Votes

Translate

Translate
New Here , Sep 23, 2024 Sep 23, 2024

Im just going to reply here with my solution as well because, in my searching, that other forum/thred did not come up.  SO just incase this helps someone using different keywords I will post here as well 🙂 

 

The solution is to save an animation preset with that dropdown selector set to "effects&presets" This will give you an FFX file that you can then use. 

 

The following is my code out of context but should be enough to explain the use case.  In my case I am working on an extension and the ffx f

...

Votes

Translate

Translate
Advocate ,
Sep 18, 2024 Sep 18, 2024

Copy link to clipboard

Copied

Votes

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
New Here ,
Sep 23, 2024 Sep 23, 2024

Copy link to clipboard

Copied

LATEST

Im just going to reply here with my solution as well because, in my searching, that other forum/thred did not come up.  SO just incase this helps someone using different keywords I will post here as well 🙂 

 

The solution is to save an animation preset with that dropdown selector set to "effects&presets" This will give you an FFX file that you can then use. 

 

The following is my code out of context but should be enough to explain the use case.  In my case I am working on an extension and the ffx files will live within the folder structure of the extension.  

 var ffxFilePath = csInterface.getSystemPath(SystemPath.EXTENSION) + "/ffx/cameraLensBlur.ffx";

var ffxFile = new File(ffxFilePath);
selectedLayer.applyPreset(ffxFile);



Figuring this out has actually expanded how I will be using this in the future for applying multiple effects set with specific parameters with one click from a button in a custom interface.

 

Hope this helps someone! 

- David  

Votes

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