move brush for artisan?

190 views
Skip to first unread message

Sebastian Schoellhammer

unread,
Jun 11, 2011, 6:57:01 PM6/11/11
to python_in...@googlegroups.com
Hello,

it always bugged me that there is no move brush in the Sculpt Geometry tool.

Looking into it though, making a custom one doesn't look too trivial though. :/
Is it even possible? It would be hard to get the direction of the move I suppose..

Has anybody tried?

Seb

Chad Vernon

unread,
Jun 11, 2011, 7:31:31 PM6/11/11
to python_in...@googlegroups.com
Yes it is possible, I created one.  I used a Qt event filter installed on the viewport in order to get a mouse move callback so I could draw the brush whenever the mouse moves.  Then you need to keep track of mouse deltas and such and calculate the proper vertex offsets in screen space projected into world space.


johnvdz

unread,
Jun 11, 2011, 10:39:03 PM6/11/11
to python_in...@googlegroups.com
Hi Seb i believe your looking for the M3dView API command and also look
at Ray casting using one of the Intersect commands to get the Start
position in 3d Space eg MfnMesh.intersect(). you can get direction from
the M3dview. then you have to look at the whole tool Context thing..but
mel Paint tools context is probably a lot easier.
i guess though using the standard Movie tool and SoftSelection or "b" is
really what your trying to achive but it be nice to have just in the
paint tools.

john

Chad Vernon wrote:
> Yes it is possible, I created one. I used a Qt event filter installed
> on the viewport in order to get a mouse move callback so I could draw
> the brush whenever the mouse moves. Then you need to keep track of
> mouse deltas and such and calculate the proper vertex offsets in
> screen space projected into world space.
>
> On Sat, Jun 11, 2011 at 3:57 PM, Sebastian Schoellhammer
> <sschoellha...@gmail.com

Sebastian Schoellhammer

unread,
Jun 13, 2011, 7:01:29 AM6/13/11
to python_in...@googlegroups.com
Thanks for the suggestions!

Chad, that sounds like you have a nice solution!
As John says I'd love to have it coherent with the Geometry sculpt tool. (having a move tool in there seems so obvious..!)
I tried to have a look at the code for it but couldn't find it anywhere in the scripts.
I suppose it's not using the api then not melsl, artUserPaintCtx etc.. ?

seb
Sebastian Schoellhammer

Sr. Technical Artist
Square Enix LTD
www.square-enix.com

PixelMuncher

unread,
Jun 14, 2011, 12:40:09 AM6/14/11
to python_inside_maya
I'd like to have that tool too.
If anyone is inclined to share it, please do.
I'd imagine there are a lot of Mayans who would be appreciative.

notanymike

unread,
Jun 20, 2011, 4:03:34 PM6/20/11
to python_inside_maya
I think there was a template on CGTalk that also used a Qt Event:
http://forums.cgsociety.org/showthread.php?t=933209
Reply all
Reply to author
Forward
0 new messages