Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects rotate offset

  • Walter Soyka

    August 21, 2015 at 4:27 pm

    I made a mistake above — apologies — the line should be:

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

    [Susan Lan] “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?:”

    This will cause a jump where the expression stops evaluating and the manual values take over, unless you carefully match the manual values to the last expression-evaluated ones.

    Walter Soyka
    Designer & Mad Scientist at Keen Live [link]
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    @keenlive   |   RenderBreak [blog]   |   Profile [LinkedIn]

  • Susan Lan

    August 21, 2015 at 5:17 pm

    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 5:20 pm

    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;

  • Walter Soyka

    August 21, 2015 at 5:26 pm

    It would be very helpful to see your project file.

    Walter Soyka
    Designer & Mad Scientist at Keen Live [link]
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    @keenlive   |   RenderBreak [blog]   |   Profile [LinkedIn]

  • Susan Lan

    August 21, 2015 at 6:16 pm

    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 6:22 pm

    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 22, 2015 at 12:31 pm

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

  • Walter Soyka

    August 24, 2015 at 12:41 pm

    [Susan Lan] “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?”

    The light stops because the LEADER stops. The light stops at 2:22, because the LEADER stops at 4:22 and the light is offset by two seconds.

    If the expressions are confusing, this might be easier to follow if you keyframe one layer, then copy and and paste the keyframes onto the other layer.

    Walter Soyka
    Designer & Mad Scientist at Keen Live [link]
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    @keenlive   |   RenderBreak [blog]   |   Profile [LinkedIn]

  • Susan Lan

    August 24, 2015 at 6:13 pm

    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);

  • Walter Soyka

    August 24, 2015 at 6:17 pm

    Remove this line:
    stopFollowingAtTime = 8;

    Change this line:
    referenceTime = Math.min(time + timeOffset, stopFollowingAtTime + timeOffset);
    …to this:
    referenceTime = time + timeOffset;

    Walter Soyka
    Designer & Mad Scientist at Keen Live [link]
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    @keenlive   |   RenderBreak [blog]   |   Profile [LinkedIn]

Page 3 of 4

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