Message 1 of 9
Script Wish: Rename selected object(s) to match the name to the nearest other object
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
After watching this video, I had an idea for a script.
https://youtu.be/G47NnPXsPHM?list=PLig7uFYLdEk44biA_p5Mip8F6jBkVNtkw&t=345
In this video, we need to pair bones to their counterpart. Although there is a 'Match by name' function available, it requires the bones to have identical names, which may not always be the case.
- The new bones are aligned to the same place as the old bones by the user.
- The script would align new bones with their counterparts in the same position as the old bones.
- It would search for the nearest other object within a specified XYZ threshold, read its name, and apply it to the selected object.
- If multiple objects are selected, the script would repeat this process for each object.
A safety measure is to pick the first other-object's name, in case more than one object is located there, and prints a message "object X has more objects nearby, check manually" to make the user aware.
Thanks for your consideration