Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions setValue for “Circle” effect problems

  • setValue for “Circle” effect problems

    Posted by Bryan Woods on September 30, 2015 at 5:31 pm

    Trying to set the values of a circle effect that I’m generating from a script. Here’s a snippet of my code (var halfHeight is already defined, just not shown here):

    var circleLocator = locator("Effects").addProperty("ADBE Circle"), circleCenter = [halfHeight,halfHeight];
    circleLocator.effect("ADBE Circle")("Radius").setValue(halfHeight);

    The issue though is that I can’t seem to figure out how to modify the radius property of this effect. Even when using rd_GimmiePropPath to get both the common path and the match name path of this property and putting that in, I still get the same error: “Function circleLocator.effect is undefined”. Any suggestions?

    Bryan Woods replied 10 years, 10 months ago 1 Member · 1 Reply
  • 1 Reply
  • Bryan Woods

    September 30, 2015 at 5:45 pm

    Got it. Never mind.

    Answer is to use .property(group index number).

    So for me, it was circleLocator.property(2).setValue(halfHeight); Because Circle effect’s radius is the second property in that effect group.

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