• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Scaling cursor icon?

Scheduled Pinned Locked Moved Developers' Forum
9 Posts 6 Posters 957 Views 6 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    Pixero
    last edited by 30 Jun 2008, 11:20

    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. πŸ˜’

    1 Reply Last reply Reply Quote 0
    • B Offline
      basic.woodworks
      last edited by 22 Jul 2008, 03:22

      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

      "The greatest mistake a person can make is to be afraid of making one." (Elbert Hubbard)

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jim
        last edited by 23 Jul 2008, 02:37

        @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.

        Hi

        1 Reply Last reply Reply Quote 0
        • P Offline
          Pixero
          last edited by 23 Jul 2008, 09:07

          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... 😞

          1 Reply Last reply Reply Quote 0
          • B Offline
            basic.woodworks
            last edited by 23 Jul 2008, 20:05

            @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?>>

            "The greatest mistake a person can make is to be afraid of making one." (Elbert Hubbard)

            1 Reply Last reply Reply Quote 0
            • A Offline
              AdamB
              last edited by 23 Jul 2008, 20:29

              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

              Developer of LightUp Click for website

              1 Reply Last reply Reply Quote 0
              • B Offline
                basic.woodworks
                last edited by 23 Jul 2008, 20:42

                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

                "The greatest mistake a person can make is to be afraid of making one." (Elbert Hubbard)

                1 Reply Last reply Reply Quote 0
                • P Offline
                  Pixero
                  last edited by 25 Jul 2008, 08:48

                  @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?

                  1 Reply Last reply Reply Quote 0
                  • F Offline
                    fredo6
                    last edited by 25 Jul 2008, 09:05

                    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

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    Buy SketchPlus
                    Buy SUbD
                    Buy WrapR
                    Buy eBook
                    Buy Modelur
                    Buy Vertex Tools
                    Buy SketchCuisine
                    Buy FormFonts

                    Advertisement