Hi Friends.
I try to stitch some UV edges via maxscript but it doesn't get me the same result like when i do it via the stitch dialog. Here is an example picture which shoes the problem.
One shell is scaled a bit and via bias 0.0 in the stitch dialog the shell is scaled down to the target shell and all is 100% fine. BUT when i use the maxscript command it's not scaled down properly. What am i doing wrong?
Thx!
Replies
akramparvez (crazy name ) for me it didn't worked to use the ...noparams() with setting the default values before. Does it work for you? I use 2010 SP1 x 64.
But you could take a look at how textools did it(as far as i remember it hat a stitch button which did exactly what you are trying to do.
I haven't used it and the press message is only sent after the window handle is found so it should work, you could test it.
Do you guys know how i can finde the corresponding Edge in the UV Editor? You know, when i select an edge, the other one is "slighty" selected also shown by another color.
Normally i would use the function to give me the geometry edge but this function seems broken since some time and only returns "undefined".
- Convert a UV vertex selection to a Geometry vertex selection
- The resulted Geo vertex select and now convert to UV selected verts
- substract your inital edge to vertex UV selection
you should have the counter vertex selection in UV space which you can convert back to an edge selection.In TexTools (open mzp with ZIP app) there is a fn_32__symmetry.ms file. Inside it I used a set of code like this
You need to do this once with every operation because it will give you the pairings of UV vertices and Geo vertices. Have a look at the symmetry script further on because it uses similar techniques you are after - like an initial UV edge selection, then a convertion to Geo vertices etc.