Is it possible to enhance current Rhinceros 9 SelectByName command? I would like to mimic the SelectByColor behaviour by picking the object selecting others with the same name.
We work with names a lot. It is complicated to go through the panel with hundreds of names and picking the right one.
My list contains 300 of them, and everyone has it own preferences, many prefer using icons, but sure, adding this one manually is the best option for now.
If I remember correctly, ‘import’ is additive, and does not remove existing. But yeah, for a single alias, it’s faster manually.
The good thing also is that these are autofilled in the command bar, once you start typing. So you can give the command the very descriptive name you were first thinking of and it pops ip easily once you start search for that function.
But, I agree with you for the request on the post. @wim could this be made part of vanilla setup (select objects of the same name)? The command is already there, just needs a button for the ui.
I use this script in my Rhino 7. It works with pre-selecting, exactly as you wish. It also lets you select multiple objects with different names and it will select all other objects with the same names. SelSameName.rar (441 Bytes)
You may need to unblock the *.py file in case that it’s locked. Right-click to open the Properties and check if there is a tickbox on “Unblock”:
Then put it this way inside an icon, where you replace “Your directory” with the actual path of your hard drive: _-RunPythonScript "Your directory\SelSameName.py"
In my case it looks like this, and I set it as a right-click to the existing “SelName” icon: _-RunPythonScript "D:\PROGRAMI\Rhinoceros 6\scripts\Select by same name\SelSameName.py"
That’s correct. The script I posted was made 7 years ago and it’s mostly useful for older Rhino versions where the new functionality introduced with Rhino 8 didn’t exist.
Selection by same name of pre-selected objects works this way in Rhino 9 BETA. No need to make aliases. I added it as a RMB command to the existing icon: