ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

.toWorld(anchorPoint) in PositionZ is displaced

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Vera Steinbeck
.toWorld(anchorPoint) in PositionZ is displaced
on Apr 1, 2019 at 5:49:34 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!

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)


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

Return to posts index

Dan Ebberts
Re: .toWorld(anchorPoint) in PositionZ is displaced
on Apr 1, 2019 at 6:18:54 pm

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


Return to posts index

Vera Steinbeck
Re: .toWorld(anchorPoint) in PositionZ is displaced
on Apr 1, 2019 at 9:34:32 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


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 All Rights Reserved