Forum Replies Created

Page 2 of 2
  • Hung Nguyendac

    October 2, 2018 at 1:58 am in reply to: Change specific keyfame’s value by expression

    Thank you very much Dan, it works like a charm.

    BTW. With this expression the Opacity Property’s value will not get 100 if i don’t add the key(5), then i found another way by precomp layer and use simple If function.

  • Hung Nguyendac

    January 1, 2015 at 5:39 am in reply to: sliders to control time between keyframes

    It’s worked. New Year has come, allow me to congratulate you and your family all my best wishes for perfect health and lasting prosperity in the New Year 🙂

  • Hung Nguyendac

    December 28, 2014 at 10:52 am in reply to: sliders to control time between keyframes

    Thank Dan! I was corrected 2 problems.
    1. I used “p=thisProperty;” and it worked with Shape and Mask.
    2. I just change “t2 = t1 + holdTime;” => “t2 = t1 + holdTime – (second);”

    I have a new problem. I use this code. It can scale layer by slider, but it doesn’t work with keyframes in this layer. How to make it correct?

    x=100; //100% Comp
    y=100; //100% Comp
    t=thisComp.layer("Scale").effect("Scale Y")("Slider");
    if (t>=y)
    [x,y]
    else
    [x,t]

  • Hung Nguyendac

    December 26, 2014 at 2:53 am in reply to: sliders to control time between keyframes

    I have 2 problems:
    1.I want to use your code with other properties. Ex. Shape and Mask (like this picture), but it always show error occurred at line 4. I think I was the wrong path.
    2. I had 12 keyframes.
    – If I start with “k1=2”, after I’m increased slider, then keyframes: 3,4,5,6,7,8,9,10,11,12 also increase value of the slider. I only want it to affect keyframes:11, k12
    – If I start with “k1=10” then the time of motion begins at keyframe 10 while I want it to start at keyframe 2. I don’t want it affect to keyframe 3->10

  • Hung Nguyendac

    December 25, 2014 at 10:13 am in reply to: sliders to control time between keyframes

    Hi Dan. Your code worked with “tranform”, but i wanna use this code for Shape “path\shape1\path-stroke-fill-tranform”.
    I was changed “p = transform.position; => p = contents.shape 1.path;”
    But it doesn’t work. Please help me.

Page 2 of 2

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