Linear FUI Slider Control

    0
    0

    The first 1000 people who click the link will get 2 free months of Skillshare Premium: https://skl.sh/ecabrams13

    Use a couple of expressions to select and highlight layers based on a slider control. We are going to talk a lot about expressions so hold on. We take it slow and examine every part of the expression to break it down so your expressions don’t break when you write them.

    Here is a simplified version of the expression you may want to modify to make work for you. ***youtube DOES NOT allow great than or less than symbols so you’ll need to change that in the calculations***:

    // variables //
    var select = thisComp.layer(“Null 1”).effect(“Select”)(“Slider”);
    var padding = thisComp.layer(“Null 1”).effect(“padding”)(“Slider”);
    var id = thisLayer.index;
    //calculations//
    if (select [GREATER THAN] id) {x=ease(select,id,id+padding,360,value);}
    else
    {x=ease(select,id-padding,id,value,360);}
    //outputs//
    [x,x]

    If you have any questions just let me know in the comments.
    Download this project file: https://gum.co/LinearFUISliderCtrl

    Connect on the Internets
    www.EvanAbrams.com
    www.Twitter.com/ecabrams
    www.Facebook.com/EvanCAbrams/
    www.Instagram.com/ECAbrams/
    Suggest a tutorial topic: https://docs.google.com/forms/d/13A2eHcNQADsjyPWrrlbFTeOMqPAbqAxq07p7Alroh_w/viewform

    LEAVE A REPLY

    Please enter your comment!
    Please enter your name here