selection order and shift-select
On 25/06/2017 at 17:04, xxxxxxxx wrote:
I'm trying to retrieve selected objects in order. This normally works fine if they are picked individually, but if I shift-select a range in the Object Manager, the list is not in order.
selected = doc.GetActiveObjects(c4d.GETACTIVEOBJECTFLAGS_SELECTIONORDER)
order in Object Manager, shift selected top-to-bottom:
order of selected list:
Seems to always get the first and last correct, but not the ones in between.
Hopefully I just missed something obvious. C4D R18.048
On 26/06/2017 at 09:15, xxxxxxxx wrote:
welcome to the Plugin Café forums
I was able to reproduce the issue, it also occurs with rectangle selection. I need to investigate a bit further, why it's not working.
On 26/06/2017 at 17:51, xxxxxxxx wrote:
Thanks very much Andreas!
On 27/06/2017 at 06:00, xxxxxxxx wrote:
I can confirm this is a bug. Unfortunately I can not give any estimates, when this will be fixed.
On 27/06/2017 at 06:33, xxxxxxxx wrote:
No worries, thanks for looking into it!
Would you have any tips on detecting a shift or box select, so I could re-order them from within my script? The first and last seem consistent, so I could use those to bound my hierarchy search.