-
Scripting: Generate varying height rectangles based on checkbox controls?
I’d like to build myself a piano roll generator script in After Effects. Here’s what I am trying to achieve (mocked up in Photoshop):

I have 2 layers for left/right hands (left hand displays blue colours, right hand displays pink colours):

Each layer has 88 checkbox controls (from 21-108 which are midi numbers):

I’ve already got the checkboxes working via a script that detects midi data and activates the correct midi number checkbox at the right time with keyframes.
How can I make use of these checkboxes to generate rectangles that are going to vary in height (probably adding 1px each time), the length of time a checkbox is active? Would be even awesome to have them rounded like the mockup.
Basically, trying to get somewhere like this but with After Effects:
https://www.youtube.com/watch?v=FrpQE9Gdw7w
Thanks.
Some contents or functionalities here are not available due to your cookie preferences!This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.


