Hi,
does anyone know how whether there is a possibility to change the mouse pointer (let’s say to the hourglass) during execution of a script take will take for some time?
Cheers, Alex
Hi,
does anyone know how whether there is a possibility to change the mouse pointer (let’s say to the hourglass) during execution of a script take will take for some time?
Cheers, Alex
If you are working in python, you can create an instance of the WaitCursor class in RhinoCommon and then dispose it when you are done.
import Rhino
import System.Threading.Thread
wc = Rhino.UI.WaitCursor()
System.Threading.Thread.Sleep(2000)
wc.Dispose()
Many thanks, I will try that. I am working in RhinoScript, but couldn’t find a possibility to change the mouse pointer there.
@stevebaer, could you give me a hint on how a C++ plugin should set an hourglass cursor?
You could either use the MFC CWaitCursor class or
RhinoSetCursor( RhinoApp().m_wait_cursor );
....
RhinoSetCursor( RhinoApp().m_default_cursor );
Great, many thanks, this works very well.