GetFaceColor - without face selection in epoly objs
I read the google for a month about this topic (cpv), but it is a little bit hard. I tried long hours with syntax-tests, could solve everything but one thing...
I'm working on a gameDev tool which can store Diffuse and Lightmask ID-s for every face. The task was that i had to save two IDs by every face (Diffuse & Lightmask). I decided that use the FaceColor data to store this information.
--> it means that 1: Diffuse ID, ||| 4: Lightmask ID.
The complete script was created and finished up to 95%, you can see a snapshot here: http://matyas-vegh.com/script_01.jpg
but... the process is very slooow in high detailed meshes... (30.000 tri +) - because i have to select face by face to get face colors by:
<color by value><EditablePoly>.GetFaceColor <enum>Channel
...because this command means get colors from selected faces.
There is a beautiful SetFaceColor method here:
polyop.SetFaceColor <Poly poly> <int mapChannel> <facelist> <Color color>
It could change face colors without selection.
How can i Get faceColors like this syntax without selection in editable poly objs?
Thanks your answer in advance!