Selected vertex attracts it's nearest neighbor to weld into it.
Hello guys,
I am in need of a script:
Selected vertex attracts it's nearest neighbor to weld into it.
If more than one vertex is selected, each selected vertex should attract to it the nearest neighbor. Only one vertex to be welded to the original vertex.
Would appreciate if anybody could help on this :)
Comments
Select nearest object based on selected object
Hi can anyone help me i need to write a maxscript for this
I need to give concrete texture to a floor-object mentioned in the image attached to this comment
based on the availability of the railing-object which sits exactly on top of the floor-object as u can see
but almost every floor-object has same name except their last number in order
so i need to give concrete texture everytime to one particular floor-object only as shown
any help ?
Sharath pawar
Seletive weld (target weld script)
Hello
I need to complete my script and this topic is related to my problem, so I hope somebody help me out.
The problem:
I need to weld some verteces that I already know one by one.
Exemple:
$.EditablePoly.SetSelection #Vertex #{4326}
$.EditablePoly.SetSelection #Vertex #{4322}
to the closest vertex located in a selected border at the same object (see the attached pictures)
.
Try this:
Select the verts that you want to weld.
Select the edges.
Press the [Get Verts] button.
Press the [Weld] button.
Tools and Scripts for Autodesk 3dsMax
Great. Thank you Miauu. I
OMG... Thank you Miauu. I will look the code and try to learn. I think it will solve my problem
...#2 distance comparation method
bga
...
So the point here is to reduce usage of polyOp struct to minimum.
Hope you agree with me Kostadin. I have not had time to to compare speed and memory.
bga
I think that for object with
I think that for object with small amount of verts the speed using polyop and not using polyop will be too small. But when I have time I will compare both methods.
The most important I think is to stop the last for loop when all verts, that have to be selected, are found. So we have to use something like this:
Tools and Scripts for Autodesk 3dsMax
Nice one i like it. Maybe
Nice one i like it. Maybe there is a better finding method because what if we used few last verts that need to be selected after welding.
bga
Not work. :)
Not work. :)
Tools and Scripts for Autodesk 3dsMax
...#1 string comparation method
Sorry for double post and untested version.
I have a new aproch without using getset Vert Data.
bga