Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Using Icons with Integer Cycle in a Plugin

    Cinema 4D SDK
    python windows r23
    2
    3
    381
    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.
    • ?
      A Former User
      last edited by A Former User

      Hello,
      As you know, you can use the icons of commands in UserData's Integer Cycle by adding an [iconid].

      830fff41-4820-44b4-92a3-56de4c8dc2b8-image.png

      Is it possible to use custom icons with an Integer - Cycle in an ObjectData plugin? If so, would I have to register command plugins in order to use the custom icons or is there a way to register bitmap icons for a plugin's UI without making them commands?

      Thank you!

      1 Reply Last reply Reply Quote 0
      • kbarK
        kbar
        last edited by

        https://developers.maxon.net/docs/py/2023_2/modules/c4d.gui/index.html?highlight=registericon#c4d.gui.RegisterIcon

        https://www.gamelogicdesign.com
        https://www.plugins4d.com

        1 Reply Last reply Reply Quote 0
        • ?
          A Former User
          last edited by

          @kbar Thank you for the reply and helpful link.

          And for anyone look to get this working with your Description files: (from https://c4dprogramming.wordpress.com/2013/05/10/long-cycles-with-icons-and-separator/), put the plugin ids in your Description header and this in your Description resource file:

          CONTAINER Omyobject
          {
              NAME Omyobject;
              INCLUDE Obase;
           
              GROUP ID_OBJECTPROPERTIES
              {
                  LONG MYOBJECT_ICONCYCLE
                  {
                      CYCLE
                      {
                              MYOBJECT_ICONCYCLE_ITEM_0;
                              -1;
                              MYOBJECT_ICONCYCLE_ITEM_1~Ocube;
                              MYOBJECT_ICONCYCLE_ITEM_2~Opyramid;
                              MYOBJECT_ICONCYCLE_ITEM_3~1021433;
                      }
                  }
              }
          }
          

          -1 creates a separator.

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