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 ?
Advertisement