Stop Selection Array from Sorting

Stop Selection Array from Sorting

blakestone
Collaborator Collaborator
491 Views
1 Reply
Message 1 of 2

Stop Selection Array from Sorting

blakestone
Collaborator
Collaborator

I use functions such as (polyop.getFaceSelection $) and it gives me an array of the selected faces however it's always sorted. Is there a way to access this information based on the order the user selected those faces?

0 Likes
492 Views
1 Reply
Reply (1)
Message 2 of 2

Steve_Curley
Mentor
Mentor
Not easily, if at all, because those polyop.get[face | vert | edge]selection functions all return a bitArray which is, by its very nature, sorted. The equivalent set functions also expect a bitArray. I suspect the only way to do it would be a script (or plugin) which detects the order as the user selects them.
Unless anyone knows better (not beyond the realms of possibility ;))

Max 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

0 Likes