ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

ExtendScript - changing opacty of a shape in a shape layer

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Mark Chan
ExtendScript - changing opacty of a shape in a shape layer
on Oct 10, 2018 at 7:16:01 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);


Return to posts index

Walter Soyka
Re: ExtendScript - changing opacty of a shape in a shape layer
on Oct 11, 2018 at 1:38:51 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 [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]