[Closed] map vert / geometry vert relationships
hey,
I have a problem where I’m trying to get what faces relate to other faces in other map channels.
For example, I colored the same vertex Blue [0,0,1] in map channel 0 and 2 (the same [b]geometry[/b] vertex) and ran a quick test script over it... apparently the face numbers of Ch0 & Ch2 are completely different to the face number that the geometry vertex is on (and each other). Even though in Channel Info they all share the same number of verts and faces.
I've tried all the meshOp.getMapFace and similar commands, but they only give you an isolated result... what I need is a "getMapFace" where you pass a relative face in as well.
ie) Geometry Face 1 = MapFace 5 in channel 2
Is there something in MaxScript that can provide this info?
If not, how would you approach this? What should I be reading up on in MaxScript?
Cheers!
Map faces always, forever, have been, are and will be linked to geometry faces by index. Same index, same face.
So if you want the map face corresponding to geometry face 5, it IS index 5. The first map vertex corresponds to the first geometry vertex referenced by the geometry face, the second map vertex in the map face corresponds to the geometry vertex referenced by the .y component of the geometry face, and the same with the third.
See “Understanding Texture Coordinates…” topic in the MAXScript Reference.
ugh… thanks Bobo, i was actually confusing myself making it more complicated than needed! I (re-)read the help files that you suggested and with a few small changes the script does what I need now! Cheers!