Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects › ExtendScript – changing opacty of a shape in a shape layer

  • ExtendScript – changing opacty of a shape in a shape layer

    Posted by Mark Chan on October 10, 2018 at 7:16 pm

    Hi. I have a shape layer that has a single ellipse on it. I’ve written a script to duplicate the layer and now I want to set a keyframe and change the opacity at a certain point based on an array value. I just can’t seem to figure out if that property is targetable and, if so, how to target it. Thanks in advance for any assistance! Here’s what I have so far:
    app.project.item(1).layer('shapelayer1').property('Ellipse 1').property('Opacity').setValueAtTime(2.5,50);

    Walter Soyka replied 7 years, 11 months ago 2 Members · 1 Reply
  • 1 Reply
  • Walter Soyka

    October 11, 2018 at 1:38 pm

    Paths don’t have opacity.

    You’ll have to either manipulate the opacity of a Fill:
    app.project.item(1).layer("shapelayer1").property("Contents").property("Fill 1").property("Opacity")

    … or of a Group:
    app.project.item(1).layer("shapelayer1").property("Contents").property("Group 1").property("Transform").property("Opacity")

    … depending on how your shape layer is set up.

    Walter Soyka
    Designer & Mad Scientist at Keen Live [link]
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    @keenlive   |   RenderBreak [blog]   |   Profile [LinkedIn]

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