Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Changing Keyframe value using Expresion

  • Changing Keyframe value using Expresion

    Posted by Jamel Ghabbara on June 20, 2018 at 11:04 am

    i have an urgent project, and im struggling with this code.
    in the comp there is a NULL and TEXT. the problem is that between the two keyframes the animation jump is case the text is empty, so pleaaaaaase help meeee :”(

    textlayer = thisComp.layer("text").text.sourceText;
    n = 0;
    kf = 2;
    if (numKeys > 0){
    n = nearestKey(time).index;
    if (key(n).time > time) n-2;
    }
    if (n == kf && textlayer == ""){
    t = time - key(n).time;
    PositionX=effect("Slider Control")("Slider");
    [PositionX,value[1]];
    }else
    value

    Andrei Popa replied 8 years, 1 month ago 2 Members · 3 Replies
  • 3 Replies
  • Andrei Popa

    June 21, 2018 at 8:18 am

    I don’t want to be mean, but even if you are in a hurry, you should try to expose your problem as clear as possible and don’t emphasize on the “so please help me”. I feel like trying to figure out what you are saying because you took your time to write in bold some text that is totally outside your problem instead of actually thinking of a right way to present us what you need.

    Andrei
    My Envato portfolio.

  • Jamel Ghabbara

    June 21, 2018 at 9:02 am

    i don’t want to be mean too, but making a text BOLD is not a problem that u should spend time talking about it, its just ONE CLICK and BOOM! it’s BOLD.Then, i did wrote everything: Comp contain two things (NULL and a TEXT) and if the text is empty the position jumps to the second frame… i think uve only read the BOLD sentance anyway thanks for the help Boss :*

  • Andrei Popa

    June 21, 2018 at 10:10 am

    You are treating the people on this forum like they owe you something. They don’t. And i don’t think anyone will answer your question if you post it like this. But what do i know? Good luck.

    Andrei
    My Envato portfolio.

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