Forum Replies Created

Page 5 of 7
  • Susan Lan

    August 25, 2015 at 1:23 pm in reply to: rotate offset

    Thank you Walter!!

  • Susan Lan

    August 24, 2015 at 6:13 pm in reply to: rotate offset

    You’re the best Walter!!!

    Thanks a lot for your time, patience, and for your great knowledge!!

    I use this code you give me for Position and for Rotation.

    I want to know -for other project that I want to use too-, how to keep using the code but deleting the tiem for stopp (I have another project where I want to follow a LEADER Layer with some offset, but without stopping at any time, then… for that project I must use the same code but, which line I must delete to never stop the expression?

    POSITION
    timeOffset = -1;
    stopFollowingAtTime = 8;

    referenceTime = Math.min(time + timeOffset, stopFollowingAtTime + timeOffset);
    referenceLayer = thisComp.layer("LEADER");
    positionOffset = [effect("offsetX")("Slider"),effect("offsetY")("Slider")];

    value + referenceLayer.transform.position.valueAtTime(referenceTime) + positionOffset;

    ROTATION
    timeOffset = -1;
    stopFollowingAtTime = 8;

    referenceTime = Math.min(time + timeOffset, stopFollowingAtTime + timeOffset);
    referenceLayer = thisComp.layer("LEADER");

    value + referenceLayer.transform.zRotation.valueAtTime(referenceTime);

  • Susan Lan

    August 22, 2015 at 3:37 pm in reply to: stop expression and continue manually

    Thanks,
    “Math.min” means = “stop at this time”?

  • Susan Lan

    August 22, 2015 at 12:31 pm in reply to: rotate offset

    The other link does not works, the link that works is this:
    https://www.dropbox.com/s/0y7feyis1y89uia/TRYING-54.aep?dl=0

  • Susan Lan

    August 21, 2015 at 6:22 pm in reply to: rotate offset

    I forget to say you (about the Proyect) that in the AE Proyect, the layer called “Back AE-Spot” is the cone of ligth (the beam of the ligth), altogth I linked its position, to the position of the point ligth (called “Front AE-Ligth”) I must to animated the rotation/orientation of the cone of ligth “Back AE-Spot”, …in order to feel that the cone ligth moves at the same direction of the ligth, but it seems it can be done with expression

  • Susan Lan

    August 21, 2015 at 6:16 pm in reply to: rotate offset

    I’m sorry Walter to make you lost so much time for my fault, here is the proyect (It is in AE CS6, and the ligth with Trapcode Lux) I deleted other 3d extra stuff:

    https://www.dropbox.com/s/0y7feyis1y89uia/TRYING-54.aep?dl=0

    If we can’t find the way to make both, the Leader layer (the camera control null) and the layer which followed it (the null of ligth), make both stop at the same time, then, perhaps it’s better to the stopping with the “Chechbok Controller”? I will try very hard to “you carefully match the manual values to the last expression-evaluated ones.” and match carefully,

    can you tell me please, how make thist code min a way to never be stopped? (for add it, in that expression of checkbox?

    timeOffset = +2;
    stopFollowingAtTime = 8;
    referenceTime = Math.min(time + timeOffset, stopFollowingAtTime);

    referenceLayer = thisComp.layer("Cam Control");
    positionOffset = [effect("Slider Control")("Slider"),effect("Slider Control 2")("Slider"),effect("Slider Control 3")("Slider")];

    value + referenceLayer.transform.position.valueAtTime(referenceTime) + positionOffset;

  • Susan Lan

    August 21, 2015 at 5:20 pm in reply to: rotate offset

    How will be this code if we don’t wanted to stop never (but we yes wanted to maintain the offset time, and the offset position)?

    timeOffset = +2;
    stopFollowingAtTime = 8;
    referenceTime = Math.min(time + timeOffset, stopFollowingAtTime);

    referenceLayer = thisComp.layer("Cam Control");
    positionOffset = [effect("Slider Control")("Slider"),effect("Slider Control 2")("Slider"),effect("Slider Control 3")("Slider")];

    value + referenceLayer.transform.position.valueAtTime(referenceTime) + positionOffset;

  • Susan Lan

    August 21, 2015 at 5:17 pm in reply to: rotate offset

    Thanks Walter, trying this code (changing the line you tell me)

    timeOffset = +2;
    stopFollowingAtTime = 8;
    referenceTime = Math.min(time + timeOffset, stopFollowingAtTime);

    referenceLayer = thisComp.layer("Cam Control");
    positionOffset = [effect("Slider Control")("Slider"),effect("Slider Control 2")("Slider"),effect("Slider Control 3")("Slider")];

    value + referenceLayer.transform.position.valueAtTime(referenceTime) + positionOffset;

    still stopping the ligth the same second of offset, the same second stopts before the LEADER stops (although is not second 8)

    perhaps because of the last line?

    P.D.: They are not renamed yet (the sliders controls) because typyng the “retunr” don’t let me change the name, but does not matter for now

    Thanks you Walter!

  • Susan Lan

    August 21, 2015 at 3:31 pm in reply to: rotate offset

    Good evening Walker!

    I’m thinking, because although I turn this lines:
    referenceTime = Math.min(time + timeOffset, stopFollowingAtTime + timeOffset);

    into this one:
    referenceTime = Math.min(time + timeOffset);

    it still do the same: the ligth stops 2 seconds before the camera stops ( because the time offset it is 2 seconds) and when I put +1 of time offset, then the ligth stops 1 second afther the camera stops.

    Then, if we imagine that we don’t want to stop never, the the code you gave me, how will be?

    timeOffset = -1;
    stopFollowingAtTime = 8;

    referenceTime = Math.min(time + timeOffset, stopFollowingAtTime + timeOffset);
    referenceLayer = thisComp.layer("LEADER");
    positionOffset = [effect("offsetX")("Slider"),effect("offsetY")("Slider")];

    value + referenceLayer.transform.position.valueAtTime(referenceTime) + positionOffset;

    __________________
    and then can we make to stop the expression in another way: creating a New layer Null Object, adding there a fx Checkbox Control and then adding to your code that when the Checkbox is ON we must obey the expression, and we it will be OFF we can do wahtever manually (with values attached to sliders) some like this?:

    control = thisComp.layer("Null").effect("Checkbox Control")("Checkbox") ;

    if (control == 1)
    {
    thisComp.layerblablablabla//can we add here your fantastic code?;
    }
    else
    {
    [640,360,0];//this linked to news slider to continue manually?
    }

    can we? can you, please?

  • Susan Lan

    August 21, 2015 at 12:52 pm in reply to: rotate offset

    the null of ligth (where I write your code) stops at 0:00:02:23
    and the layer “LEADER”, that is the Cam Control stops at 0:00:04:23

    The capture:
    https://i.imgur.com/t28qeqM.jpg

    It is possible to tell to the code, to this line:
    referenceTime = Math.min(time + timeOffset, stopFollowingAtTime + timeOffset);
    that we don’t want to take the offset value for stop? Or it is not for that reason why the ligth stops 2 seconds before the camera stops, since the time offset is 2 seconds (in order to make the ligth in front of the camera, and make the camera pursuing the ligth)

    View post on imgur.com

Page 5 of 7

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