LC #42 Pipers Alley  View Full Version : New To Maya Api...
Trying To Make Sculpting Brush  04-08-2009, 12:50 AM  I am
trying to learn how to use the Maya API by making a type of
sculpting brush. I have it working almost perfectly, except for
a couple things...  When the user drags the cursor over the
model, I want the model to visually deform in real time. Right
now, as the user drags the cursor, the model doesn't change, but
one the user releases the mouse button, everything gets changed
all at once. I do not even have a doRelease function in my
MPxContext class -- just doPress and doRelease.  Also, when the
user drags, I'd like a box around the cursor that shows the
selected area. Right now, I have it draw a square, and that part
works, but the screen doesn't clear for each time step. So when
the user drags, a long string of little squares follows along
with it. The squares go away after the user releases, though
(maybe it has something to do with the problem above?). Here is
the relevant section of code: