I’m having the same trouble, but Im trying to use “inner shadow” which does not have an Effect equivalent.
I can set Layer Style values if that layer style is already turned on in the gui, but I cant figure out how to turn on any layer styles.
If I try to set a value on a layer style that has not been enabled by hand it gives me an error “Can not “set value” with this property, because the property or parent property is hidden”
But if I set that layers style to enabled I get another error “Can not set enabled on this property because canSetEnabled is false”, but canSetEnabled is read only, so I have no idea how to turn on the layer style.
Any thoughts?
//This will change the opacity of the inner shadow on a layer with inner shadow turned on already
var layer_1 = test_comp.layer(1)
layer_1.property("Layer Styles").property("Inner Shadow")("Opacity").setValue(10)