Forum Replies Created

  • Jürgen Hackl

    August 6, 2012 at 3:12 pm in reply to: How do I add Layer Styles to a Layer with script?

    Hi Dan,

    thank you for your help. This solution works perfect.
    I got the command ID by using alert(app.findMenuCommandId(“Farbüberlagerung”)) and put the ID direct into the code, otherwise the script would only work in my german AE-version.

    app.executeCommand(9006);

    br
    Jürgen

  • 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

  • Hi Dan,

    yes, that was the problem. Thank you very much.

    Jürgen

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy