Forum Replies Created

  • Ben Mason

    September 8, 2018 at 2:18 pm in reply to: Link Light intensity to Camera Position

    Hi Dan,

    So I’ve renamed the main null as ‘Earth Null’ and applied the expression to one of the lights – is that correct? do I need to do anything else?

    I’m getting an odd error message

    any thoughts?

    Ben Mason
    motionographer
    London
    UK

  • Ben Mason

    September 7, 2018 at 10:33 pm in reply to: Link Light intensity to Camera Position

    Thank you Dan, looks great – really appreciate you looking at this!

    Do you mind if I get back to you tomorrow afternoon if I have any queries?
    Currently on another project deadline for tomorrow.

    Ben Mason
    motionographer
    London
    UK

  • Ben Mason

    September 7, 2018 at 8:33 pm in reply to: Link Light intensity to Camera Position

    Thanks for getting back to me Dan, much appreciated.
    That sounds like a very clever solution – hadn’t thought of that
    re: set up
    Here is a still

    I plan to cut between multiple camera angles of the earth, which is why I am keen to have a solution that doesn’t involve keyframing multiple lights on and off for each shot.

    Set up is…
    Element 3D sphere – linked to master null for rotation, position, scale
    Parented to that master null are 20 city location nulls (positioned and aligned to the earth’s surface)
    Also parented to that master null are 20 lights, with same position data as each of the city nulls
    Each light represents as a flare courtesy of Optical Flares
    Problem is that lights on the far side of the planet show up on this side.
    So I thought that if they reached the horizon line of the earth I could reduce the light’s intensity and they would effectively fade out before they cross the horizon line.
    I found an expression for reducing a layer’s opacity based on distance from camera but this requires an anchor point for the layer and lights don’t have one? It’s in the box below


    start = thisComp.layer("Control").effect("FadeStart")("Slider");

    end = thisComp.layer("Control").effect("FadeEnd")("Slider");

    CameraPos = thisComp.activeCamera.toWorld([0,0,0]);

    LayerPos = toWorld(anchorPoint);

    Difference = length(CameraPos, LayerPos);

    linear(Difference, start, end,0,100);

    Ben Mason
    motionographer
    London
    UK

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