Single script to select different things

 From:  Michael Gibson
11127.10 In reply to 11127.9 
Hi Flowgun, thanks for the example file, it helps to be able to reference a specific example.

A couple of things are still not clear to me.


> case 1:
> selection: a single box or a surface that are a part of a named collection
> wanted behavior: select its naked edges/boundaries

Ok, but In a previous message above (http://moi3d.com/forum/index.php?webtag=MOI&msg=11127.3) you wrote:

> also, I noticed that if more than one object is selected, the script does nothing.
> Maybe it would be useful to select the naked edges of all selected objects

So should naked edges be selected on all selected objects like you asked for previously, or should it only be when there is a single object selected like in your latest message?


Also if the object is a named object, it seems like there are 2 different rules that could apply to it - both the "expand to other named objects or switch to next name" and also the "select naked edges" . Which one of these should be applied? And what if there are no naked edges on the object?


Also for case 3:
> case 3:
> Selection: Edit points on a curve or multiple curves(with whatever else selected - should be checked first?)
> wanted behavior: the rest of edit points on the same curve(s) are added to whatever else is selected.

Can you show me a step-by-step example of how this is not working for you currently?

Here's an example of the current behavior - if a curve has edit points showing, and some are selected like this:



Then triggering the script will result in this:



This matches what you asked for in this previous message (http://moi3d.com/forum/index.php?webtag=MOI&msg=11127.3) which was this:

> - point selection: if some points on a curve are selected, it selects the rest.


- Michael

EDITED: 24 Jun 2023 by MICHAEL GIBSON