Forum Replies Created

  • Chris Dc

    July 24, 2007 at 12:28 am in reply to: round 2 with a distance fade

    GAH! new snag,
    the expression is reading the position value of parented layers as relative to the parent layer, so things are messed up.

    again.

    so
    if i use toWorld ae for some reason puts scale into the equation skewing scaled layer position information,

    if i use position[2], parented layers give relative position information of the parent layer,

    is there some way to get actual z space info on a layer that is absolute and will not be effected by scale so i can compare it to the camera distance.

    this is driving me the crazy.

    chris d-_-b

  • Chris Dc

    July 20, 2007 at 6:13 pm in reply to: round 2 with a distance fade

    y’know, i’m not sure why i try to make something more complicated than it needs to be.

    scraping toWorld and just using position.value[2] works.
    still confused exactly why scale effects toWorld though…

    btw, thank you to creative cow and this forum. learned alot (i.e. almost everything) from reading these posts.

    chris d-_-b

  • Chris Dc

    July 18, 2007 at 9:39 pm in reply to: atmospheric fade expression

    hey again,

    i’ve revamped the script to make it more malleable. strange things happen though when i scale an object. it inversely effects the end result of the script, ie. scale up, the effect lessens, scale down the effect increases. here’s the current script.

    Q=thisComp.layer(“atmopheric master control”); // Effect control null
    startFade = Q.effect(“Start Close Up”)(“Slider”); // Effect begins at this distance from cam
    endFade = Q.effect(“End Close Up”)(“Slider”); //Effect ends at this distance from cam

    C = thisComp.activeCamera.toWorld([0,0,0]); // Cam position
    x = thisComp.activeCamera.position[0]; // Cam x position
    y = thisComp.activeCamera.position[1]; // Cam y position
    z = anchorPoint[2]; // Object z position
    P = toWorld([x,y,z]); // Object relative position on the z-axis from Cam
    d = length(C,P); // Distance Calculation
    easeOut(d,startFade,endFade,Q.effect(“Color Balance (HLS) Zoom”)(“Saturation”),0) // Actual effect based on startFade & endFade parameters

    i base the distance from the object to the cam only on the z axis because i have a bunch of off centered anchor points for animation and it reads the distances further away compared to two objects on the same plane.

    …er, yeah.

    so why is scale coming into effect here? is it because i’m using toWorld?

    thanks
    chris d-_-b

  • Chris Dc

    July 9, 2007 at 10:26 pm in reply to: atmospheric fade expression

    PERFECT!

    thanks so much. wondering if there’s a list for how effect variables are interpolated somewhere. are all 0 to 255 value ranges actually percentages?

    love for expressions rising.

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