Skip to main content
Participant
September 18, 2024
Answered

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

  • September 18, 2024
  • 2 replies
  • 428 views

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 
This topic has been closed for replies.
Correct answer davidm87236436

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  

2 replies

davidm87236436AuthorCorrect answer
Participant
September 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 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  

Legend
September 18, 2024