Scripting Question: Is it possible to Add an effect to a layer but Hide it's control properties?
In this simple script, I'm adding a Gaussian blur to a layer with a value of 1. But my question is, can you add an effect to a layer but hide the effect controls via scripting? Eventually, I would map the controls to a custom slider or UI, but before I got that deep into things, I was curious if it's even possible to hide effect(s) in the Effects Control Panel.
Here's the simple code that I have:
// Apply Gaussian Blur effect with a value of 1 to selected layers
// Get the active composition
var comp = app.project.activeItem;
// Check if the active item is a composition
if (comp instanceof CompItem) {
// Get the selected layers
var selectedLayers = comp.selectedLayers;
// Loop through the selected layers
for (var i = 0; i < selectedLayers.length; i++) {
var layer = selectedLayers[i];
// Create a new Gaussian Blur effect
var gaussianBlur = layer.Effects.addProperty("ADBE Gaussian Blur 2");
// Set the blurriness value to 1
gaussianBlur.property("Blurriness").setValue(1);
}
} else {
alert("Please select a composition.");
}
Thank you!
