Selection order
-
Dear all,
Is there a way, within a script, when iterating all objects into model.selection to retrieve the order they have been put into it ?
It looks like the index of selection array is not necessarily the order objects have been selected.
Sorry if it has already been discussed here, I looked into the forum but did not find clear answer to this question.
Yours
Pascal -
The native 'select' tool will often return its array in the order of picking, BUT this is not guaranteed, and of course if you pick a curve, then all of its edges are added in the curves edges' order...
You can make a Tool class... where the selection is initially cleared and the user is prompted to select things - these can be added to the model.selection, and also in that case each selected object can be pushed into your own array, so you can be sure of the order of that array's order of picking...What is it exactly your seek to achieve ?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement