Author Topic: Is there a way to select a random color on an effect?  (Read 1109 times)

Offline Stosh

  • Newbie
  • *
  • Posts: 37
    • View Profile
Is there a way to select a random color on an effect?
« on: November 11, 2017, 10:42:49 AM »
Is there a way to select a random color on an effect?  For instance, I have a portion of a show that uses Morph to create a "laser beam" effect on line segments of my house.  I have about 50 line segments.  This portion of the show shoots about 10 laser beams per segment, all at different times so that nothing is in snyc (appears random).  This is about 500 individual Morphs, so I'm not excited about manually changing all those to a seemingly random color.

Actually hue looks like the easiest way because it would preserve my usage of 3 colors in the palette.  It would shift the whole palette and have the potential for 100 different hues (I think).  I thought I could try hacking the XML file to change each Morph to a different hue, but then discovered the hue is stored on the color palette, not the effect.  So I guess I could define 100 different color palettes and use a script to have all the Morphs point randomly to one of these predefined palettes.

Is there an easier way?

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Is there a way to select a random color on an effect?
« Reply #1 on: November 11, 2017, 05:37:19 PM »
Technically the colors are stored as part of the effects but what we do to save space is create a lookup table of all the color palettes you have used in the sequence and each effect has a pointer to which palette to use.

I'd really need to see the sequence to figure out options.

Offline Stosh

  • Newbie
  • *
  • Posts: 37
    • View Profile
Re: Is there a way to select a random color on an effect?
« Reply #2 on: November 11, 2017, 06:54:30 PM »
Never did this before, so I hope posting the sequence.xml and the rgbeffects.xml is the correct way.
The Morphs in question are from 3:28 to 3:38.
Thank you in advance for looking at this.