Forum Replies Created

Page 1 of 3
  • Sebastian Martinez

    May 26, 2020 at 1:37 pm in reply to: Color change driven by JSON-file

    Hi Tomas,

    thanks for asking! Regarding the colors – it just simply works. Even with 3 colors, two for max and min value and the third for medium value. The more colors you use the more distinguished is the result.

    For that I finally changed the workflow a bit by just using black and white for min and max values, prerender the result and on that image-sequence I used the Colorama-Effect to ramp values with multible colors. That way it is easier to edit the desired colors.

    Sebastian Martinez
    CGI-Designer
    Cologne, Germany
    AE, AI, PS, 3ds max, C4d

  • Sebastian Martinez

    May 13, 2020 at 3:33 pm in reply to: Color change driven by JSON-file

    Hi folks,

    I gave it another try myself and with the help of a friend of mine who is a Javascript-Pro, though he hasn’t ever touch AE before:

    counties = footage("test.json").sourceData;
    minmax = counties[counties.length-1];
    countyName = name.split("-")[1].split(" ")[0];
    var result;
    for(var i = 0; i < counties.length-1; i++) {
    if(counties[i].ID === countyName){
    result = counties[i].days;
    }
    }
    //v = result[timeToFrames(0)];
    v = result[Math.round(thisComp.layer("Null 42").effect("Slider Control")("Slider"))];
    startcolor = thisComp.layer("Null 42").effect("Color 1")("Color");
    endcolor = thisComp.layer("Null 42").effect("Color 2")("Color");
    linear (v,minmax.min,minmax.max,startcolor,endcolor);

    Data-source is a JSON-file imported into AE. The layer name ist a reference to pick its specific values out from the JSON. The part in the middle I don’t understand. But the results are driven by an animated slider (from 0 to 45 wich are the separat values animated over time). And the two colors for having a transition between them come from Color Controle effects named Color 1 and Color 2.

    The JSON-file partly look like this:

    The code works well. But might be written better I guess…

    Sebastian Martinez
    CGI-Designer
    Cologne, Germany
    AE, AI, PS, 3ds max, C4d

  • Andrei,

    yes, the square braketts where too much. I just found it out by myself.

    But thank you so much for replying!

    Respects
    Sebastian

    Sebastian Martinez
    CGI-Designer
    Cologne, Germany
    AE, AI, PS, 3ds max, C4d

  • Stupid me. Too much braketts. This works now:

    Col=thisComp.layer("Null 42").effect("Slider Control")("Slider");
    color1=thisComp.layer("Null 42").effect("Color Control")("Color");
    color2=thisComp.layer("Null 42").effect("Color Control 2")("Color");

    linear (Col,0,100,color1,color2)

    Anyhow, Thanks to all of you for helping out in this forum, especially Dan!

    Take care
    sebastian

    Sebastian Martinez
    CGI-Designer
    Cologne, Germany
    AE, AI, PS, 3ds max, C4d

  • okay, I’m replying to my own post. I found kind of a strange work around:

    1. Copy the group-item you wish to paste (if allready arranged in another comp, in my case the Trim function with some expressions)

    2. Select the Shape Layers you want to paste into

    3. Type “group 1” (or the specific group you want to toggle) into the search dialog of the timeline-window and press enter. Now that group is revealed in all selected Shape Layers

    4. Select these opened groups by click-dragging over all of them (start that in the free space between the opened layers)

    5. Just paste. That Content is now pasted directly into that group without creating a new one

    Thats not working at lightspeed but just about lightspeed

    Best wishes to you all
    Sebastian

    Sebastian Martinez
    CGI-Designer
    Cologne, Germany
    AE, AI, PS, 3ds max, C4d

  • okay, I’m replying to my own post. I found kind of a strange work around:

    1. Copy the group-item you wish to paste (if allready arranged in another comp, in my case the Trim function with some expressions)

    2. Select the Shape Layers you want to paste into

    3. Type “group 1” (or the specific group you want to toggle) into the search dialog of the timeline-window and press enter. Now that group is revealed in all selected Shape Layers

    4. Select these opened groups by click-dragging over all of them (start that in the free space between the opened layers)

    5. Just paste. That Content is now pasted directly into that group without creating a new one

    Best wishes to you all
    Sebastian

    Sebastian Martinez
    CGI-Designer
    Cologne, Germany
    AE, AI, PS, 3ds max, C4d

  • Sebastian Martinez

    May 9, 2020 at 11:43 pm in reply to: Fade out Shape Layer when Path is revealed

    Yes, it is tied to my previuos question.

    Thats perfectly it!

    Dan you are a heroe!

    Thank you so much and best wishes,
    Sebastian

    Sebastian Martinez
    CGI-Designer
    Cologne, Germany
    AE, AI, PS, 3ds max, C4d

  • Sebastian Martinez

    May 9, 2020 at 4:05 pm in reply to: Get Values from Layers Name

    Dan,

    that’s exactly it! Perfect, you are magic!

    Dearest respacts and thank you so much again!
    Sebastian

    Sebastian Martinez
    CGI-Designer
    Cologne, Germany
    AE, AI, PS, 3ds max, C4d

  • Sebastian Martinez

    June 4, 2010 at 12:51 pm in reply to: Delayed Opacity Rampdown

    wow!

    thank’s dan, you are a hero.
    sebastian

    Sebastian Martinez

  • Yes, these setting are disregarded sometimes. But I checked it all and it was all ok …

    It is just an oldy dv cam.

    I didn’t had the leisure yet to fix it though, but I’ll post when it’s done.

    Thank you for all your knowledge!

    Respects
    Sebastian

    Sebastian Martinez

Page 1 of 3

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