PDA

View Full Version : Selection Order


Infinite
11-12-2010, 01:48 AM
I never realized that fl.getDocumentDOM().selection doesn't retain the selection order... <sniff>. I was hoping to build relationships based on the order. I guess I took if for granted that tools like Maya and Max store the selection buffer in order of what was selected.

I'm trying to avoid:
Select Object, <Press 'Parent' Button>, Select Parent, <Press 'Parent' Button>

Any idea's?

Can I hack the 'Selection' Tools Object itself?

Justin_P
11-19-2010, 05:52 PM
You could create your own selection tool. You can start a new tool using the code in Configuration/Tools/polystar.jsfl as a guide. You just need to get the location of the mouse click from the tool, then run document.mouseClick(), grab the newly selected object, and add it to your own selection array.

Infinite
11-29-2010, 08:05 PM
Cool. I'll try to add this to my code. :D

-h