Hi there,
I figured out a solution for the first part …
In case anyone is interested, here´s my code:
—————————————————–
// Selected Composition
var comp = app.project.activeItem;
// Selected Layers
var slctd_layer = comp.selectedLayers;
// Create new Solid and set Adjustment Layer Flag
var new_adjustment = comp.layers.addSolid([1,1,1], “Adjustment Layer”, comp.width,comp.height,comp.pixelAspect,comp.duration);
new_adjustment.adjustmentLayer = true;
// Check if at least one Layer is Selected
// if so move the new Layer on top of the selected one
if ( slctd_layer[0] != null){
//alert (slctd_layer[0].index);
new_adjustment.moveBefore(slctd_layer[0]);
}
—————————————————–
But I still can´t figure out how to activate the “Effects Control Panel”. If someone knows what the internal
aftereffects name is that would help I guess.
And I still need a way to check if the used effects are available.
(One workaround I can think of is to let the script do its thing and at the end check if the effect
was applied or not and then delete the layer again … but that looks not like a good way to me …)
I still could need some help ….