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

    How to access Built-in Icons?

    Cinema 4D SDK
    r21 python
    2
    3
    388
    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.
    • B
      bentraje
      last edited by

      Hi,

      Is there a way to access the built-in icons in Cinema4D as an image for a button? For instance, the cube/box icon.
      There is a line in this thread:
      icon = c4d.bitmaps.InitResourceBitmap(c4d.RESOURCEIMAGE_OK)
      but the resource image page in the documentation do not include the cube icon.

      Is there another page I should look for?

      1 Reply Last reply Reply Quote 0
      • ferdinandF
        ferdinand
        last edited by ferdinand

        Hi,

        you can pass just the general node IDs in most cases (instead of a specific icon ID). So you do not really have to look them up for nodes, as you can guess them in most cases. But you can find all symbols here.

        bmp = c4d.bitmaps.InitResourceBitmap(c4d.Ocube)
        c4d.bitmaps.ShowBitmap(bmp)
        

        Cheers
        zipit

        MAXON SDK Specialist
        developers.maxon.net

        1 Reply Last reply Reply Quote 1
        • B
          bentraje
          last edited by

          @zipit

          I see. It's the same as the object ID. I also tried it with external plug-in icons.
          It works as expected.

          Thanks for the clarification!

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