Hey folks,
Not sure if im going mad / discovered a Maya bug or am generally just failing epically.
But… can someone try running the code below in Maya 2011 or greater. [ I’m using 2012 ]
myBrush = pm.artUserPaintCtx()
pm.artUserPaintCtx(myBrush, edit=True, duringStrokeCmd='print "During!";', afterStrokeCmd='print "After!";', beforeStrokeCmd='print "Before!";')
pm.setToolTo(myBrush)
print pm.artUserPaintCtx(myBrush, query=True, beforeStrokeCmd=True)
print pm.artUserPaintCtx(myBrush, query=True, duringStrokeCmd=True)
print pm.artUserPaintCtx(myBrush, query=True, afterStrokeCmd=True)
Is it just me whos having the during command returned as a list / reason why it never prints “During!” when stroking.
Cheers
~ Pirate Joe