Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions [Problem] Access multiple JSON files with RegEx and dynamically calculate y-Axis

  • [Problem] Access multiple JSON files with RegEx and dynamically calculate y-Axis

  • Leonie Wercker

    February 20, 2021 at 1:37 pm

    but then they are still plotted:

    12 regular values plotted + 8 values with less opacity plotted = 20 values plotted across the x-axis

    but I just need to plot the 12 regular values plotted.

  • Filip Vandueren

    February 20, 2021 at 1:40 pm

    You wouldn’t see them at all at opacity=0;

    You can also position them offscreen or set their scale to [0,0] with an if/else in those parameters.

    Either way: there is no way to delete layers with an expression, that would have to be achieved with a script.

  • Filip Vandueren

    February 20, 2021 at 1:45 pm

    I’m sorry, I didn’t realize you were using a line with nulls…

    Don’t know if the original project is still reflecting what your code looks like now, but in that getNullLayers() loop, you can add the condition of i < data.length, to stop adding more nulls to the list.

  • Leonie Wercker

    February 20, 2021 at 2:54 pm

    ah, okay, will try that

    the problem in general is that I need to plot the 12 real values across the entire length of the x axis.

    otherwise, the length of the x axis is consumed not by 12 but by 12 + 8 datapoints.

    I tries to illustrate on the picture

Viewing 11 - 14 of 14 posts

Log in to reply.

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