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
    • Recent
    • Tags
    • Users
    • Login

    Icons in MenuFlushAll() is Possible?

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 252 Views
    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.
    • H Offline
      Helper
      last edited by

      On 03/06/2014 at 15:21, xxxxxxxx wrote:

      Hi 🙂

      Is possible, in MenuFlushAll(), add icons in command?

      self.MenuFlushAll()

      # Example
              self.MenuSubBegin("Test")
              self.MenuAddString(21001, "Command1")
              self.MenuAddString(21002, "Command2")
              self.MenuSubEnd()

      self.MenuFinished()

      I have used this metod, but not work...

      self.MenuFlushAll()

      # Example
              self.MenuSubBegin("Test")
              self.MenuAddString(21001, "Command1&i" + str(c4d.ID_MODELING_MOVE) + "&")
              self.MenuAddString(21002, "Command2&i" + str(c4d.ID_MODELING_ROTATE) + "&")
              self.MenuSubEnd()

      self.MenuFinished()

      Thanks

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 03/06/2014 at 21:57, xxxxxxxx wrote:

        Unfortunately, it doesn't work that way in dialog menus. When a Menu Entry has an Icon, it
        is a Command Plugin added with MenuAddCommand().

        -Niklas

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