Message 1 of 1
Tool context problem , _setcursor problem
Not applicable
11-19-2010
10:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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:
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!!!
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!!!