select or link near objects
Hello everybody,
I'm looking for a script for the following problem:
You select an object and look for close by objects. The objects can be linked or just selected. So for each vertex of the selected object look if there is a objects pivot point close by (with a threshold) if yes, select this object.
Scenario: You have a branch of a tree with leaves. Everything is detached to individual objects. (see attachment)
Thanks in advance!
Attachment | Size |
---|---|
1.jpg | 60.76 KB |
Comments
.
Run the code below:
Use the [Pick Objcet] button to pick the object to which you will compare all other objcets.
Set the threshold value in the spinner.
Press the [Find nearest objcets] button.
In the maxscript listener will be printed the index of the vertex and the nearest object.
If you want nearest object to be moved to the closest vertex turn on the checkbox.
Tools and Scripts for Autodesk 3dsMax