WISH: SelectByName - enhanced behaviour

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.

Hi, it’s currently completely possible with Rh8.
Add to your aliases (Options/Aliases) a shortcut. I have 2 for the same command.

SelSameName _-SelName S
SS _-SelName S

It selects objects of the same name to the ones you have currently selected.

The magic here is basically just using the scriptable version of the command, by using “-” in the front of the command.

Indeed!

What I was thinking was adding Select one in the panel:

It’s a bit of a hassle to add this shortcut for every member of the team and make them remember it, but it is great temporary solution.

It might help that you can export and import aliases, so everyone would have the same curated list in use.

But your improvement idea sounds good also!

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"

Tooltip:
Select objects with same name


The script was also mentioned in a few other topics. We have to thank @Helvetosaur for this great script!

With 8 and upwards the script version is no longer needed, as the -Selname was fixed to allow pre-selected set with.

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: