the -drawString flag doesn't draw a string, and if I put in a call to spaceLocator inside the sampleContextPress callback nothing happens either. Here is the code, straight out of the MEL reference help. I'm trying to create an array of mouse positions based on where the mouse is pressed, with feedback for where the mouse is pressed. If there is another way to do this short of trying to write a C++ plugin, please let me know. Thanks.:
global proc sampleContextPress()
float $pressPosition = `draggerContext -query -anchorPoint sampleContext`;
print ("Press: " + $pressPosition + " " + $pressPosition + " "
+ $pressPosition + "\n");
global proc sampleContextDrag()
float $dragPosition = `draggerContext -query -dragPoint sampleContext`;
int $button = `draggerContext -query -button sampleContext`;
string $modifier = `draggerContext -query -modifier sampleContext`;
print ("Drag: " + $dragPosition + " " + $dragPosition + " "
+ " Button is " + $button + " Modifier is " + $modifier + "\n");
string $message = ($dragPosition + ", " + $dragPosition);
draggerContext -edit -drawString $message sampleContext;