Creative Communities of the World Forums

The peer to peer support community for media production professionals.

  • Posted by Seth Olson on November 16, 2016 at 6:27 pm

    in AE CC 2016

    trying to have a layer Fill color be defined by its index to a random color for the whole time/duration.

    seedRandom(index,true);
    A = random(100);
    B = random(100);
    C = random(100);
    [A,B, C, 0]

    I have a 0 at the end cause it complains about having 4 dimensions, but it doesn’t seem to change anything. The results are always white each time, even with “seedRandom” excluded. Ideas?
    Thanks!

    Seth Olson replied 9 years, 5 months ago 1 Member · 1 Reply
  • 1 Reply
  • Seth Olson

    November 16, 2016 at 7:14 pm

    Ah!!! I solved it. The color value was between 0-1, not 0-100. Here is the script that worked for me:

    seedRandom(index,true);
    A = random();
    B = random();
    C = random();
    [A,B,C,0]

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