Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Define your own icons for mouse cursor

    Cinema 4D SDK
    r20 python
    2
    5
    869
    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
      pim
      last edited by

      Can you define your own icons or bitmaps as mouse cursors?

      1 Reply Last reply Reply Quote 0
      • M
        m_adam
        last edited by

        Hi @pim this is unfortunately not possible to define another mouse cursor than these one Mouse Enum.

        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        1 Reply Last reply Reply Quote 0
        • P
          pim
          last edited by

          Actually, if I use c4d.gui.RegisterIcon() and c4d.gui.SetMousePointer(), it seems to work.

          bm1 = bitmaps.BaseBitmap()
          bm1.InitWith(os.path.join(path, "res", "mouse rightbottom.png"))     
          c4d.gui.RegisterIcon(9988, bm1, x=0, y=0, w=-1, h=-1)
          ....
           c4d.gui.SetMousePointer(9988)
          

          Am I doing something that is forbidden?

          1 Reply Last reply Reply Quote 0
          • M
            m_adam
            last edited by m_adam

            While you can't break anything doing that, I'm surprised you are able to make it working constantly (here and looking how internally its work, it can't be used in all conditions (try to call it from the console or script manager) the icon will not stay.

            So maybe in a Dragging process, it could work, since you set the icon displayed to your icon ID for each redraw but that's it otherwise the default icon ID is redefined.

            Cheers,
            Maxime.

            MAXON SDK Specialist

            Development Blog, MAXON Registered Developer

            1 Reply Last reply Reply Quote 0
            • P
              pim
              last edited by

              Ok, something to think about and to consider.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post