Map Channel 2 is a UV set. Unity will import it as the second UV on the mesh, however Unity will only get the first two components of any UV for imported meshes, so if you need a second vertex colors you’ll have to spread it out over two UV sets, so ultimately you’ll need to use a maxscript to copy the blue channel into map channel 3.
That’s what I feared… and it sounds like I should rather use channel 4 then in the first place and copy the data from there to the UVs.
Can you point me to some good site for that information or do you already have a similar script at hand?
I never wrote a MaxScript so far.
The closest thing I’ve found so far and which I’d use as a starting point was some script from YouTube here which as least seems to fiddle around with channels:
Dealing with vertex colors using 3ds Max are the bane of my maxscript existence. Every geometry type and modifier deals with vertex colors in a different way, and some you can read, but not set color, others can set but not read, some can do both but the data to denote which vertex to read from is totally different from how to set it. And sometime modifiers the way you set the UVs the same way that you set the color, and others it’s totally different. Fun times all around.
I haven’t looked at the script you linked to, but hopefully it can get you somewhere.