3rd Dimentia
07-23-2008, 04:49 AM
Can anyone shed some light on how to modify UVW's with maxscript?
I've tried using polyop.setMapVert to assign a new value to the UVW position of the vert and when that didn't work, I added a UVWunwrap and tried Unwrap_UVW.setVertexPosition2 to try to do the same thing.
But I'm not getting the results I was looking for...I'm trying to modify UV vert positions based on modified values of other UV vert positions.
It seems that SOME verts are moving to thr right spots, but it appears that they are the wrong verts. So the vert positions that it's generating are mostly correct, but the verts in those positions are the wrong ones. I've tripple checked that I'm using the correct relative vert numbers to get the vert position values from.
I know when I've scripted the recreation of UV channels from one object to another, that I've used polyop.setmapface but not sure if I need to be looking into that as it seems that that function is to assign which verts are used with what face. which actually seems like it's the same vert numbers that the faces of the poly are using. So I'm assuming that if it's already setup, I don't need to bother with this.
Anyone?
What am I missing? Besides a clue.
Cg.
I've tried using polyop.setMapVert to assign a new value to the UVW position of the vert and when that didn't work, I added a UVWunwrap and tried Unwrap_UVW.setVertexPosition2 to try to do the same thing.
But I'm not getting the results I was looking for...I'm trying to modify UV vert positions based on modified values of other UV vert positions.
It seems that SOME verts are moving to thr right spots, but it appears that they are the wrong verts. So the vert positions that it's generating are mostly correct, but the verts in those positions are the wrong ones. I've tripple checked that I'm using the correct relative vert numbers to get the vert position values from.
I know when I've scripted the recreation of UV channels from one object to another, that I've used polyop.setmapface but not sure if I need to be looking into that as it seems that that function is to assign which verts are used with what face. which actually seems like it's the same vert numbers that the faces of the poly are using. So I'm assuming that if it's already setup, I don't need to bother with this.
Anyone?
What am I missing? Besides a clue.
Cg.
