Oooh, attempted to divide by zero… Guess there is a bad assumption somewhere or maybe bad error checking… the script is 10 years old.
Do you have any idea what input you made for the two color choices so I can test?
Edit - I can see one problem if you only choose one object - there I get a divide by zero error. Obviously i didn’t check for only a single object being chosen, that can be fixed. Do you have another situation where this might occur?
Thanks for the quick reply. I think that was the only situation where I was getting that error. I only had one object selected and was randomly assigning the color. Works well fine when multiple are selected.
OK, here is a revised version with special casing for one object, should no longer error out, it will just average the start and end colors chosen. I should probably adapt it for v7 and later and add a transparency channel as well…