Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions .toWorld(anchorPoint) in PositionZ is displaced

  • .toWorld(anchorPoint) in PositionZ is displaced

    Posted by Vera Steinbeck on April 1, 2019 at 5:49 pm

    hey there!
    i have a problem with the generate-beam function.. i have the beam building a line and at the front of it i need a light following as emitter for particular.
    now everything worked fine in 2D, but in 3D, the Z-axis is off and i can’t find out why :/

    my expression simple: i have a linear expression on the light-position that moves from circleA to circleB along with the “time” setting from the beam-layer.

    if i stay in the same z-Axis the light follows without a problem. it i have a longer travel from about z0 to z300 then the light is delayed..
    does somebody have a clue, why this is happening?

    help would be greatly appreciated!

    13234_beamproblem.aep.zip

    Time = thisComp.layer(Beam).effect("Rope - Controls")("time");
    BeginningLayer = thisComp.layer("1").effect("Rope - Start")("Ebene").toWorld(anchorPoint)
    EndLayer = thisComp.layer("2").effect("Rope - End")("Ebene").toWorld(anchorPoint)

    linear(Time,0,50,BeginningLayer,EndLayer);

    //There may be typos in the code - i simplified it

    Vera Steinbeck replied 7 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    April 1, 2019 at 6:18 pm

    Is the Beam effect on a 2D layer? If so, try using toComp() instead of toWorld().

    Dan

  • Vera Steinbeck

    April 1, 2019 at 9:34 pm

    hi dan!
    thank you for your time! ????

    yes, the beam effect is on a 2D layer.. i tried using toComp(anchorPoint) but then the positionZ was way back in zPosition, about 1500

    hmm…

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