Scaling cursor icon?
-
Is it possible to scale the cursor icon from within a script?
Or if not, to use different cursor icons depending on user input value?
I hope I'm not too cryptical. -
As far as I know... no. But you might want to suggest it to Google in their feedback page. Also, is there a way to increase it's size through themes right from the computer settings
Mike RL
-
@pixero said:
Is it possible to scale the cursor icon from within a script?
Or if not, to use different cursor icons depending on user input value?
I hope I'm not too cryptical.I don't think you can scale it from in SketchUp. And you can only select a cursor from in a Tool.
You can use onSetCursor from the Tool class to select a cursor for your Tool. You would need to setup each cursor using UI.create_cursor, and then you could use onSetCursor to select the cursor based on the state of the Tool. I think you could even create a type of animated cursor by cycling through a set of images. onSetCursor is called quite frequently - it appears any mouse movement triggers it, so optimization it is important.
-
Ok, what I had in mind was a way to have a brush-like tool with a circle as cursor to show the different sizes. Like in photoshop.
I guess it isn't possible then... -
@unknownuser said:
Basic.woodworks....are you a ruby coder?
No. Sorry. Why??
I'd love to get into it but I've got a short circuit somewhere between the eyes and the brain. I can't retain what I read very well. If I can see, do and experience, I can learn but when it comes down to reading... not so much. Besides that.. there are soooo many resources and books and such, I honestly have no idea where to begin. Do I need to know some math? do I need to have a basic understanding of what before I can do which?!?
As far as the ruby thing goes, I've been referred to forums for ideas but like anything else, everyone has their own opinion which doesn't make it any easier for me.
Any thoughts of your own??
Mike RL
P.S. you probably should reply to me email so we don't change the topic of discussion in this <<scaling cursor icon?>>
-
Pixero,
You can have different size cursors by using SetCursor as Jim suggested and using different sized images.
ie create a 128x128 image for a huge cursor. However, you can't scale an existing cursor using Ruby.
Adam
-
You can increase the size of you cursor by going into the system preferences, select Universal Access, and then "Mouse & Keyboard". You can adjust the cursor size there.
It's amazing the stuff I find when I start snooping around looking for something else. Hmm.
Oh yeah.. This is for Mac OS X of course. Not sure of the procedure for Windows.
Ciao
Mike RL
-
@adamb said:
Pixero,
You can have different size cursors by using SetCursor as Jim suggested and using different sized images.
ie create a 128x128 image for a huge cursor. However, you can't scale an existing cursor using Ruby.
Adam
So that would mean a folder with loads of circle cursors at all sizes from 1 px to lets say 500 px.
Not a very smooth solution i guess...
Is there any other way of getting this?
Can a sketchup curve (circle) be attached to the cursor and be used in any way? If so how? -
Pixero,
Another solution is simply to draw the cursor as a circle with the method view.draw2d available in View class at the position of the cursor (this is how I do for my protractors). You just adjust the size of your circle based on your current parameters.
To make the Sketchup cursor disappear, I guess the best would be to have an 'empty' png file (or a cross or whatever you want to design the hot spot)
Fredo
Advertisement