funksmaname wrote:I wouldn't have thought keeping colours between programs was such a big issue? can't they just carry the RGB ref?
Well yes and no. The rgb can be transferred but every application may have a different way of displaying or storing the color. Another issue is how some applications define colors. For example if RGB is defined by percentage or a value between 0 and 255.
I have spent about 20 minutes fiddling with AI export and importing into AS. There is something "odd" going on I can't figure out. I have some theories but they aren't based on any real knowledge, just guesses.
I am thinking that the AI/EPS import was developed back at version 8 of AI. I don't have that exact version and my thought is what may have happened to the AI file format since then. Even though I can export to v8 it may not be the same as it was exactly. AI/EPS import is still at v8 support.
Good news though, I was looking at the file format in a text editor so that still works. This means it would probably be possible to script an AS to AI/EPS converter. This REALLY REALLY REALLY has me excited to try out sometime. Also possibly... maybe... a scripted Illustrator import could be developed. I don't even want to think about that though. The curve interpreter in the current version is much improved and I know it's a freaking complex bit of code... but if the other way works out... maybe it could be done.
One thing I was thinking about possibly would be to use the AS import and then a "script" to "fix" the colors by reading the original file... might be tricky though.
I noticed that the AI format seems to use 2 different formats for color:
The first set of numbers seem to be "normalized" color values (0-1). The second set is of course RGB with what I believe is the alpha at the end.
In my testing it appears that AS is reading the RGB values incorrectly or there is some type of "rounding" causing issues.
In my test here is the conversion changes:
AI - R-153 G-204 B-51
AS - R-153 G-254 B-0
I have to agree that I don't understand why the AI import can't read those numbers correctly. I think it should work. I am pretty sure that in the scripting interface colors in AS use normalized values (0-1). I don't know how that would effect things.
This is the first time I did any extensive tests or comparisons of the AI/EPS import. I may not have studied the AI format carefully enough to find the exact color formats. I found the color of the only shape in my sample file at the top of the file in the text editor... however I don't know if this is where AS is picking up the colors for the fills.
-vern