Forum Replies Created

  • Victor Lima

    May 15, 2020 at 4:01 pm in reply to: ease interpolation based on values

    Thanks for helping me guys both of you gave cool tips for the solution.
    The first(0) and the last(7 – it’s same like the first ) group of data are not important they are just containers. And finally I made it with createPath() not trimming.

    here’s a gif (the design needs some adjusting but it works)
    https://media.giphy.com/media/SULCqXRiwj5AIexNKf/giphy.gif

    slide= thisComp.layer("BarControls").effect("DataGroups")("Slider")+1;
    h = new Array();

    for(i=0; i <4; i++) {
    h1 = footage("04_2_YourCSV.csv").dataValue([slide,i]);
    h.push([h1]);
    }

    function myArrayMax(arr) {
    return Math.max.apply(null, arr);
    }

    vMax = myArrayMax(h);

    slide0= thisComp.layer("BarControls").effect("DataGroups")("Slider");
    h00 = new Array();

    for(i=0; i <4; i++) {
    h0 = footage("04_2_YourCSV.csv").dataValue([slide0,i]);
    h00.push([h0]);
    }

    function myArrayMax(arr) {
    return Math.max.apply(null, arr);
    }

    v0Max = myArrayMax(h00);
    v1 = footage("04_2_YourCSV.csv").dataValue([slide,0]);
    v0 = footage("04_2_YourCSV.csv").dataValue([slide0,0]);
    x0 = (v0/v0Max)*1353;
    x1 = (v1/vMax)*1353;
    s0 = Math.floor(slide);
    s1 = Math.ceil(slide);
    end = linear(slide, s0, s1, x0, x1);

    createPath(points = [[0,0], [end,0]], inTangents = [], outTangents = [], is_closed = false);

  • Victor Lima

    May 14, 2020 at 11:37 am in reply to: ease interpolation based on values

    Yes, the expression is on trim path end property. And I want to animate trimming of the end property. For example the first percentage is 25%, then 13,8%, 80%, 45%, 100%, etc.. and the bar now jumps from one value to the other. My goal is to slide trough the inbetween numbers from the first value to the second and from the second to the third etc..

    Here’re two pictures with my original code:

    the last value

  • Victor Lima

    May 14, 2020 at 7:26 am in reply to: ease interpolation based on values

    Thanks for the rapid response, Darby but it’s not what I wanted to do. Maybe I wasn’t clear – sorry for that.
    So the goal is to make the path trim tweening through values after one another. Now it’s like hold interpolation.

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