Forum Replies Created

  • This works perfectly, and also makes sense. Thank you very much!

  • Saara Salminen

    September 4, 2018 at 4:48 pm in reply to: Clamp position in a circle instead of x- and y-axis.

    Hi!
    The center point actually works perfectly in this case, since the starting point of the shape layers is in the middle of the comp. This helped me a lot, thank you Dan!

    Saara

  • Saara Salminen

    September 4, 2018 at 4:33 pm in reply to: Clamp position in a circle instead of x- and y-axis.

    Hi Dan! That works really well. However, the project I’m working on is a rig, so I would prefer if it would work when moving the Leader around, instead of only when animated. Is that possible?

    Many thanks,
    Saara

  • Yes, that’s exactly what I was trying to achieve! Works like a charm.
    Kiitos ☺

  • Now the sliders move the object along each axis, but ignore the position animation they are supposed to control. Let me try to explain with an image:

    So I’ve got a null object (called “Null_pyrstö_V”) with two sliders. The null’s position is animated, so that between the two first keyframes, the null moves in an arch. The third keyframe has the same position as the first. Between the third and the fourth keyframe the null moves in a straight line.
    I’d like the first slider, called “Kaari”, to controll the animation between the two first keyframes. So that when the slider is moved, the null moves from keyframe1 to keyframe2.
    The second slider, called “vaakataso”, is supposed to make the null go from the third keyframe to the fourth. So I need to find a way to combine the expressions, so that both sliders work, and I could later link them to a controller.

  • Hi Dan!
    Oh, I was afraid so.
    The first slider controls an animation where an object moves upwards along a curve. The animation controlled by the second slider is linear along the x-axis.
    The goal is to create a controller that controls both the sliders. When the controller moves vertically, the first slider activates, and when moving the controller horizontally, the second slider is activated. It’s all part of a rig.

  • Hi!
    I’m trying to reach something similar myself. A null has two sliders: one that controls an animation with spatial bezier interpolation, an one that controls a linear animation.
    I tried to combine both of the expressions Dan mentioned, but only the latter expression works, regardless of the order I put them in. If I try them out separately, they work perfectly.

    It looks like this:
    s = effect(“Slider1”)(“Slider”);
    t = linear(s,0,100,key(1).time,key(2).time)
    valueAtTime(t);

    f = effect(“Slider2”)(“Slider”);
    linear(f,0,100,key(3).value,key(4).value);

    Any ideas how to get them both to work? I’d also like to understand why it doesn’t work to start with.

  • I’ll try that out, thanks Dan!

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