Forum Replies Created

Page 1010 of 1081
  • Dan Ebberts

    August 21, 2006 at 1:19 pm in reply to: expression for showing layer marker text

    Aharon,

    Apparently it you could do it older versions, but newer versions have a bug that prevents access.

    Dan

  • Dan Ebberts

    August 17, 2006 at 6:02 pm in reply to: “baking” child keyframes

    That expression should work fine (even with the light being a child). There must be more to the story…..

    Dan

  • Dan Ebberts

    August 17, 2006 at 6:02 pm in reply to: “baking” child keyframes

    That expression should work fine (even with the light being a child). There must be more to the story…..

    Dan

  • Dan Ebberts

    August 17, 2006 at 2:28 am in reply to: LOOPOUT(type,”cycle”) UNDEFINED!!!

    What does your expression look like? The syntax in your subject line is not quite right – should be something like this:

    loopOut(type = “cycle”)

    or

    loopOut(“cycle”,0)

    or

    loopOut(“cycle”)

    Dan

  • Dan Ebberts

    August 17, 2006 at 2:28 am in reply to: LOOPOUT(type,”cycle”) UNDEFINED!!!

    What does your expression look like? The syntax in your subject line is not quite right – should be something like this:

    loopOut(type = “cycle”)

    or

    loopOut(“cycle”,0)

    or

    loopOut(“cycle”)

    Dan

  • Dan Ebberts

    August 17, 2006 at 2:18 am in reply to: Switching focus of a camera with expressions

    You have to calculate the distance that the camera’s focal plane would need to be from the camera to include the target object. If the object is not on the camera’s z axis, it involves a little vector math, but that is greatly simplified by AE’s dot product operator.

    For a target layer named “target” the expression for Focus Distance would look like this:

    P = thisComp.layer(“target”).position;
    dot(P – position,toWorldVec([0,0,1]))

    For serious depth of field effects you’re probably going to want to crank the Aperture way up (in the hunderds).

    Dan

  • Dan Ebberts

    August 17, 2006 at 2:18 am in reply to: Switching focus of a camera with expressions

    You have to calculate the distance that the camera’s focal plane would need to be from the camera to include the target object. If the object is not on the camera’s z axis, it involves a little vector math, but that is greatly simplified by AE’s dot product operator.

    For a target layer named “target” the expression for Focus Distance would look like this:

    P = thisComp.layer(“target”).position;
    dot(P – position,toWorldVec([0,0,1]))

    For serious depth of field effects you’re probably going to want to crank the Aperture way up (in the hunderds).

    Dan

  • Dan Ebberts

    August 15, 2006 at 10:18 pm in reply to: Expession Question

    Change the 8th line from this:

    if (n == 0){

    to this:

    if (n == 0 || n%2 != 0){

    Dan

  • Dan Ebberts

    August 15, 2006 at 10:18 pm in reply to: Expession Question

    Change the 8th line from this:

    if (n == 0){

    to this:

    if (n == 0 || n%2 != 0){

    Dan

  • Depends on what you’re doing. A lot of times you can convert the expression to a equation based on time. Sometimes you have to have your expression “recreate” the past by walking through the comp frame by frame. The are other, more obscure techniques that can be helpful in rare situations.

    If all you want to do is increment a value on each frame you could do it like this:

    myVar = 10; //starting value
    f = Math.round(time/thisComp.frameDuration); //frame number
    myVar += f;

    Dan

Page 1010 of 1081

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