Notifications
Clear all

[Closed] Request for Draw-Selection-Tool

Hey guys,
for a while now I am serching for a script/tool which gives me the ablility to select faces by drawing/moving the mouse over them. I know XSI has such a tool, and Maya maybe too. I am not able to write such a script/tool, but I thing it would not be that difficult (just a script which scans the position of the cursor and selcects the faces below, or not?). I hope someone who is familiar with Maxscript writes one.

Best regards,
Leon

15 Replies

hi! i am also thinking about writing such a script, i just didn’t found a easy way yet to recognize which face lies under the mousecursor, i thought about shooting a ray from the viewer position to the mouse and test which face it is hitting, the problem is that i don’t have enough time right now to test if this is the right approach. so if someone knows if this will work or has another suggestion on how to achieve this, i would be glad to hear from you so i could write that script…

It already exists! It’s in Herman Saksono’s Polymagus script suite:

http://maxres.cgworks.com/scripts/

RH

Hi, i show

and take a little time to exercice me.It s not a finished script but to check the deal.I use the painterinterface , to select a range of faces or vertex.With the common , alt and control to add and sub selection.

There also, a simple way to do it select only the central hitted face, what is precise but unable to fast select large group.

About the intersectray method , unelse you use the Ex way with mesh(or cheat apply/sub turntomesh modifier) you won t be able to use the Poly.What could be annoying today.

test the script just by open it on the listener and execute it(CTRL+E)

:bounce:

hmm, i just tried polyMagus, but it doesn’t seem to work, strangely it doesnt even start properly… i am using max6, maybe thats the point…
gloupi, your script works and looks pretty good, but i wasn’t able to select faces with it. to do it with the painterinterface is a nice idea. i will take a closer look on it this weekend, maybe i can get something to work…

Ok, i see the problem, :surprised
as i used at work my paint skin tool, it initialize the painterInterface.
So i checked, and fixed the problem.I made it a bit too fast, next time id spent more time to think before write.
Elsewhere, it is much faster at home, what is strange.

Sorry, that s better
also, want to see you re way Cthulhu

:bounce:

ok, i also tried it with the painterInterface. what i didn’t like was that the faces get selected by vertex, so i changed that. the drawback of this is that only faces directly under the mouse will get selected. the brushsize doesn’t matter, so i disabled it.
only works on an editable_mesh at the moment…

updated the script, it now also works on editPoly. I’m pretty happy with it now, except that it is a bit laggy sometimes, but i don’t think this can be fixed since it is due to the painterinterface.
the script consists of 2 macrosrcipts that are located in the “Piranha-Bytes” category. the first one is the normal script, the second one is a keyboardShortcut. put a hotkey on this, and the script will automatically toggle paint mode when you press it.

ok Cthulhu,

i tried your last version, which works fine.:buttrock:
But, When dragging it select only the half of the faces.
Are you sure that it need an interface.Would be easiest whitout.

Have you tried mine ?

Perhaps you could add, standard control/alt support to add/sub faces selection to your script.

about mine:
I write it as a simple macro, call it by any choosen keyboard shortcut.On my UI i place it on quad menu, next to polySculpt and others.
And i also make it work with edge.
And tried to get it continue to paint when changing subobject level, actually changing subobject break the tool.

:bounce:

Hey Cthulhu,
your script kicks ass, it’s exactly what it was looking for. Exept it’s a bit laggy at the begining and between the selections, it looks like everytime you start it, it needs some seconds to be ready. But exept that, it’s really ass kick’n.

Best reards,
Leon

Page 1 / 2