Forum Replies Created

Page 995 of 1081
  • Dan Ebberts

    November 29, 2006 at 5:55 pm in reply to: Roving objects position?

    If “Layer A” and “Layer D” are the end points, one in-between layer could have a Position expression like this:

    A = thisComp.layer(“Layer A”).position;
    D = thisComp.layer(“Layer D”).position;
    A + (D – A)/3;

    And the other one like this:

    A = thisComp.layer(“Layer A”).position;
    D = thisComp.layer(“Layer D”).position;
    A + (D – A)*2/3;

    There are ways to automate it based on layer index if you have a bunch of layers, but this should get you started.

    Dan

  • Dan Ebberts

    November 27, 2006 at 8:36 pm in reply to: is it possible to loop a still image?

    It sounds like you need to check out the Offset effect (in the Distort group, I think)

    Dan

  • Dan Ebberts

    November 26, 2006 at 12:19 am in reply to: Complex 3d Space Question

    This seems to work. It assumes your camera starts out on the comp’s z axis. Start with your pieces arranged at z = 0. Add a Slider Control to each piece and set the value to 100. Add this expression for Positon:

    cameraPos = [thisComp.width/2,thisComp.height/2,-888.9];
    zControl = effect(“Slider Control”)(“Slider”);
    v = (value – cameraPos)*zControl/100 + cameraPos;

    Make sure the z value in the cameraPos variable matches your initial camera z position (mine was -888.9);
    Add this expression for Scale:

    zControl = effect(“Slider Control”)(“Slider”);
    value*zControl/100

    Adjust the sliders – values smaller than 100 move the piece closer to the camera, greater than 100 move them away. There should be no apparent change in position or size as you adjust the slider – it only shows up when you move the camera (or change the view).

    Dan

  • Dan Ebberts

    November 26, 2006 at 12:19 am in reply to: Complex 3d Space Question

    This seems to work. It assumes your camera starts out on the comp’s z axis. Start with your pieces arranged at z = 0. Add a Slider Control to each piece and set the value to 100. Add this expression for Positon:

    cameraPos = [thisComp.width/2,thisComp.height/2,-888.9];
    zControl = effect(“Slider Control”)(“Slider”);
    v = (value – cameraPos)*zControl/100 + cameraPos;

    Make sure the z value in the cameraPos variable matches your initial camera z position (mine was -888.9);
    Add this expression for Scale:

    zControl = effect(“Slider Control”)(“Slider”);
    value*zControl/100

    Adjust the sliders – values smaller than 100 move the piece closer to the camera, greater than 100 move them away. There should be no apparent change in position or size as you adjust the slider – it only shows up when you move the camera (or change the view).

    Dan

  • Dan Ebberts

    November 15, 2006 at 6:10 pm in reply to: remove frames

    If you really want to remove every 5th frame, you could use a Time Remapping expression like this:

    n = 5; // skip every nth frame
    frameToSkip = 4; // 0,1,2 …n-1
    currFrame = timeToFrames(time);
    currFrame += Math.floor((currFrame – frameToSkip)/(n-1)) + 1;
    framesToTime(currFrame)

    The way it’s set up above, it will skip the 5th frame of each group of 5. If you wanted it to skip the first frame of each group, for example, you would change frameToSkip to 0.

    Dan

  • Dan Ebberts

    November 15, 2006 at 6:10 pm in reply to: remove frames

    If you really want to remove every 5th frame, you could use a Time Remapping expression like this:

    n = 5; // skip every nth frame
    frameToSkip = 4; // 0,1,2 …n-1
    currFrame = timeToFrames(time);
    currFrame += Math.floor((currFrame – frameToSkip)/(n-1)) + 1;
    framesToTime(currFrame)

    The way it’s set up above, it will skip the 5th frame of each group of 5. If you wanted it to skip the first frame of each group, for example, you would change frameToSkip to 0.

    Dan

  • Dan Ebberts

    November 14, 2006 at 11:02 pm in reply to: Using expressions to create an animated spiral in 3D space

    I’d make a null the parent of your particle, rotate the null, and move the null along the axis of rotation.

    Dan

  • Dan Ebberts

    November 14, 2006 at 11:02 pm in reply to: Using expressions to create an animated spiral in 3D space

    I’d make a null the parent of your particle, rotate the null, and move the null along the axis of rotation.

    Dan

  • Dan Ebberts

    November 11, 2006 at 7:01 pm in reply to: sending submovies to frame (x) with expressions

    Assuming that you have already converted your audio to keyframes, you would enable Time Remapping for your movie and apply an expression like this to the Time Remap property:

    a = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
    minAudio = 0;
    maxAudio = 20;
    minFrame = 0;
    maxFrame = 60;
    f = linear(a,minAudio,maxAudio,minFrame,maxFrame);
    f*thisComp.frameDuration;

    Adjust minAudio and maxAudio to match your audio levels.

    Dan

  • Dan Ebberts

    November 11, 2006 at 7:01 pm in reply to: sending submovies to frame (x) with expressions

    Assuming that you have already converted your audio to keyframes, you would enable Time Remapping for your movie and apply an expression like this to the Time Remap property:

    a = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
    minAudio = 0;
    maxAudio = 20;
    minFrame = 0;
    maxFrame = 60;
    f = linear(a,minAudio,maxAudio,minFrame,maxFrame);
    f*thisComp.frameDuration;

    Adjust minAudio and maxAudio to match your audio levels.

    Dan

Page 995 of 1081

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