Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions 5 colours to repeat over x shapes

  • 5 colours to repeat over x shapes

    Posted by Toma Ever on October 6, 2014 at 7:00 am

    Hello,

    I have 5 colours on 5 colour fills on a separate shape layer, and I duplicate a shape x times on another shape layer. I want these 5 colours to loop like this

    COLOR 1 2 3 4 5 1 2 3 4 5…
    LAYER 1 2 3 4 5 6 7 8 9 10…

    So far, I get the shape colour and colour picker linked like this:
    thisComp.layer(“Color Palette”).content(“Color Palette”).content(thisProperty.propertyGroup(3).propertyIndex).content(“Fill 1”).color

    and each colour fill group are named 01 , 02, 03, 04 and 05.

    Now I need this selection to loop every 5 shapes…
    Anyone ?

    Toma Ever replied 11 years, 7 months ago 1 Member · 1 Reply
  • 1 Reply
  • Toma Ever

    October 6, 2014 at 7:43 am

    (N/5-Math.floor(N/5))*5

    ayay!

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