Tool context problem , _setcursor problem

Tool context problem , _setcursor problem

Anonymous
Not applicable
364 Views
0 Replies
Message 1 of 1

Tool context problem , _setcursor problem

Anonymous
Not applicable
hi all
am new to python scripted plugin.
I try to write a MPxContext tool. the tool need to change cursor via different mousebutton event.
here is outline of my codes:
import ...
class ...(MPxContext):
def __init__(self):
self.handCursor=ui.MCursor.crossHairCursor
def doPress (self):
self._setCursor(self.handCursor)


but in maya when use this plugin and setTools to it,there's always type errors pops out.says argument 2 got type error: self._setCursor(self.handCursor)
I dont know where is the problem .Can anyone here help me? Thank you very much!!!
0 Likes
365 Views
0 Replies
Replies (0)