Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Ignore parent position question?

  • Ignore parent position question?

    Posted by Ben Christie on September 24, 2015 at 9:54 pm

    Hey guys,

    I currently have 4 layers:

    Master Mover
    Gradient Postion 1
    Gradient Postion 2
    Gradient Ramp

    I have a gradient ramp effect that has two handles attached to the ‘gradient position’ nulls via an expression.

    But when I parent the 2 gradient position nulls to the master mover, the gradient messes up.

    Is there a way to have the gradient position handles ignore the master mover position?

    Please help, thanks!

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

    September 25, 2015 at 10:47 am

    [Ben Christie] ” have a gradient ramp effect that has two handles attached to the ‘gradient position’ nulls via an expression. But when I parent the 2 gradient position nulls to the master mover, the gradient messes up. Is there a way to have the gradient position handles ignore the master mover position?”

    When you parent the “gradient position” nulls to the “master mover” null, it changes their frame of reference. Instead of referring to position relative to the comp, they refer to position relative to their new parent.

    Since the gradient itself is not parented to the master mover, it needs position data in the coordinate space of the comp, not the coordinate space of some other null.

    Use an expression like this on the gradient start/end point to convert from layer space to comp space:

    l = thisComp.layer("Gradient Position 1");
    l.toComp(l.anchorPoint);

    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