I guess next thing to try is to set the whole artUserPaintCtx in mel as the duringStrokeCmd seems to work when being used in a mel script… will report back my findings assuming noone else can find a solution first!
Aye i did wonder if that was the case myself, but if that were the case why would it be adding the command you feed into it as an entry in the list?
Anyway, my boss has raised it with AutoDesk along with some other things that have been driving us spare, I’ll post the official responce when it comes
I think it might be because you are using query=True.
“The passed string is executed as a MEL command immediately after the end of a stroke. C: Default is no command. Q: When queried, it returns the current command”
My current opinion is that the duringStroke command is broken / failing because once its been set, internally the command gets changed to a list not a string unlike the before / after stroke commands.
I have since posting this thread written a mel script to try and set the brush up, but i couldnt get the during stroke command to work in mel either :-/
Has anyone had any success creating a paintBrush tool in general?
[ My original tool used the before / after stroke commands on the vertex selection brush, I’m trying to improve that tool by applying values to the selected verts “live” as the user strokes across a mesh rather than after completion of a stroke, which is how i came to be looking at the paint scripts tool because it had the duringStroke event command, I’m open to other ways of acheiving the same goal though if anyone has one! ]
"
Thanks for logging this with us. I see the same thing and can’t think of an explanation why duringStrokeCmd returns an array instead of the string. You’d expect to see the same result for all three …StrokeCmd’s.
I was trying to pass the artUserPaintCtx through a function using decorators which would give you some feedback for when the function entered and exited. I was trying to rebuild the functionality that way.