Skip to main content
Participating Frequently
July 16, 2019
Answered

how to register access to the properties of the effect Camera Lens Blur through AE scripting? Continuing the theme...

  • July 16, 2019
  • 1 reply
  • 421 views

Good afternoon...

There are 2 layers in the scene. The second layer is the map Z depth or ( app.project.item(1).layer(2).name = "Z depth"

Trying to record the settings for the effect Camera Lens Blur. This is the second effect applied to the layer

------------------------------------------------------------------------------------------------------------------------------------------------------------

// set ID MATTE

app.project.item (1).layer(1).property("ADBE Effect Parade").addProperty("ADBE ID MATTE")("ADBE ID MATTE-0001").setValue(2);

app.project.item (1).layer(1).property("ADBE Effect Parade").property("ADBE ID MATTE")("ID Selection").setValue(0);

// set Camera Lens Blur

app.project.item (1).layer(1).property("ADBE Effect Parade").addProperty("ADBE Camera Lens Blur")("ADBE Camera Lens Blur-0010");

app.project.item (1).layer(1).property("ADBE Effect Parade").property("ADBE Camera Lens Blur-0010").property("Blur Map").property("Layer").setValue(2);

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

echo: null is not an object

????

This topic has been closed for replies.
Correct answer Justin Taylor-Hyper Brew

Effect properties are only one level deep, even though they appear to be nested. Try this instead:

// set ID MATTE

app.project.activeItem.layer(1).property("ADBE Effect Parade").addProperty("ADBE ID MATTE")("ADBE ID MATTE-0001").setValue(2);

app.project.activeItem.layer(1).property("ADBE Effect Parade").property("ADBE ID MATTE")("ID Selection").setValue(0);

// set Camera Lens Blur

app.project.activeItem.layer(1).property("ADBE Effect Parade").addProperty("ADBE Camera Lens Blur")("ADBE Camera Lens Blur-0010");

app.project.activeItem.layer(1).Effects.property('Camera Lens Blur').property("Layer").setValue(2);

1 reply

Justin Taylor-Hyper Brew
Community Expert
Community Expert
July 16, 2019

Effect properties are only one level deep, even though they appear to be nested. Try this instead:

// set ID MATTE

app.project.activeItem.layer(1).property("ADBE Effect Parade").addProperty("ADBE ID MATTE")("ADBE ID MATTE-0001").setValue(2);

app.project.activeItem.layer(1).property("ADBE Effect Parade").property("ADBE ID MATTE")("ID Selection").setValue(0);

// set Camera Lens Blur

app.project.activeItem.layer(1).property("ADBE Effect Parade").addProperty("ADBE Camera Lens Blur")("ADBE Camera Lens Blur-0010");

app.project.activeItem.layer(1).Effects.property('Camera Lens Blur').property("Layer").setValue(2);