Forum Replies Created

Page 974 of 1081
  • Dan Ebberts

    May 22, 2007 at 5:36 pm in reply to: Fill color expression linked to Offset value

    The exact expression depends on how you want it to respond, but here’s an example. You would add a slider control to the text layer and apply this expression to the fill color:

    offset = effect(“Slider Control”)(“Slider”); // your offset value here
    maxOffset = 100; // offset where blue is maximum
    minBlue = 0;
    maxBlue = 1.0;

    blue = linear(offset,0,maxOffset,minBlue,maxBlue);
    red = value[0];
    green = value[1];
    [red,green,blue,1]

    Adjusting the slider from 0 to 100 will cause the blue component of the fill color to go from 0 (no blue) to 1.0 (max blue).

    Dan

  • Dan Ebberts

    May 22, 2007 at 3:28 pm in reply to: Fill color expression linked to Offset value

    It’s hard to tell from your description, but the thing that trips most people up with color in expressions is that the values for each color channel need to be between zero and 1.0.

    It’s probably going to look something like this:

    offset = ??? // your offset value here
    maxOffset = ??? // offset where blue is maximum
    minBlue = 0.5;
    maxBlue = 1.0;

    blue = linear(offset,0,maxOffset,minBlue,maxBlue);
    red = value[0];
    green = value[1];
    [red,green,blue,1]

    Dan

  • Dan Ebberts

    May 22, 2007 at 1:08 pm in reply to: Position Expression

    I think you only need Filip’s second expression. There is a typo in the third line (which you probably caught) – “distance” should be “dist”.

    Dan

  • Dan Ebberts

    May 21, 2007 at 6:45 pm in reply to: Inverse Kinematics: Dan Ebberts

    That’s true. I have a newer version that eliminates that problem. I’ll have to dig it up and post it.

    Dan

  • Dan Ebberts

    May 21, 2007 at 12:17 pm in reply to: Inverse Kinematics: Dan Ebberts

    Hi Jarod,

    The hand does become detached if you move it far enough that the arm pieces can’t reach it. Is that what you mean, or are you seeing something else?

    Dan

  • Dan Ebberts

    May 20, 2007 at 9:59 pm in reply to: Random Scale Expression

    Something like this maybe:

    frame = Math.round(time/thisComp.frameDuration);
    seed = Math.floor(frame/3);
    seedRandom(seed,true);
    s = random(50,150);
    [s,s]

    Dan

  • Dan Ebberts

    May 18, 2007 at 2:58 pm in reply to: valueAtTime and yRotation

    The only problem I see is that I think it should be rotationY instead of yRotation.

    Dan

  • Dan Ebberts

    May 18, 2007 at 2:17 pm in reply to: valueAtTime and yRotation

    Your expression assumes that your first follower layer is layer 2 in the stacking order, the second follower is layer 3, and so on. How did you want to set it up?

    Dan

  • Dan Ebberts

    May 14, 2007 at 5:00 am in reply to: Dan’s Revamped Site

    Thanks Mike – I appreciate the feedback! It’s always good to know that somebody finds the site useful or interesting.

    Dan

  • Dan Ebberts

    May 13, 2007 at 1:15 am in reply to: Text Mosaic Effect

    You are correct sir. The answer is unfortunately no.

    Dan

Page 974 of 1081

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