I’m having the same problems with my script, I can’t enable Layer Styles. Did anyone find a solution in the meantime?
I want to write a expression to a color overlay in a text layer, first I tried this code:
myTextLayer.property(“ADBE Layer Styles”).property(“solidFill/enabled”).property(“solidFill/color”).expression = myExpressionString;
Error: AE says that “set expression” is not possible because the property is hidden/disabled (I don’t know the error message of an english AE Version)
Then I tried to add the Property first with this syntax and got the same Error Mattias described in the initial posting.
myTextLayer.property(“ADBE Layer Styles”).addProperty(“solidFill/enabled”);
Error: Can not add a property with name … is neither an INDEXED_GROUP nor a text animator prperty group.
Jürgen