Can a script change colors in a layer?
Posted: Tue Dec 11, 2007 6:33 am
Is it possible to write a script that goes through all the shapes in a switch layer (the sub layers) and changes all with a certain color (let's say FFFFFF for the sake of argument) to a different color?
The reason I ask is I have a set of library mouths that have the skin shade as part of their construction, but to use them with different characters I need to go in manually and change each of the 10 shapes to the right color (by cutting and pasting). It's not terrible, but a script to do this would be tremendous. It must recognize and only change the shapes in all layers of that switch layer that match a certain color to another certain color.
I'm not asking anyone to write this for me -- I just want to know if it's doable (if it is it might give me the push to learn scripting).
The reason I ask is I have a set of library mouths that have the skin shade as part of their construction, but to use them with different characters I need to go in manually and change each of the 10 shapes to the right color (by cutting and pasting). It's not terrible, but a script to do this would be tremendous. It must recognize and only change the shapes in all layers of that switch layer that match a certain color to another certain color.
I'm not asking anyone to write this for me -- I just want to know if it's doable (if it is it might give me the push to learn scripting).