Community
3ds Max Programming
Welcome to Autodesk’s 3ds Max Forums. Share your knowledge, ask questions, and explore popular 3ds Max SDK, Maxscript and Python topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Stop Selection Array from Sorting

1 REPLY 1
Reply
Message 1 of 2
blakestone
354 Views, 1 Reply

Stop Selection Array from Sorting

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?

--------------------------------------------------------------------------------------
Technical 3D Graphic Artist
Autodesk 3dsMax 2015 - Service Pack 4
--------------------------------------------------------------------------------------
1 REPLY 1
Message 2 of 2
Steve_Curley
in reply to: blakestone

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).

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report