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

    Change icon of python script in UI palette

    General Talk
    python macos
    3
    5
    1.1k
    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.
    • I
      InterfaceGuy
      last edited by

      Hello everyone

      I'm wondering if it is possible to do the following:
      For the work I'm doing I have a growing set of python scripts that when executed generate custom objects setups using c4d base objects and xpresso
      I'm able to include these scripts in the UI which allows me to treat them like buttons for regular c4d objects
      The only thing that's missing is the ability to change the icon of the script to a png file that's stored alongside it in its designated folder
      Is there a simple/tangible way to achieve what I'm looking for?

      Screenshot 2024-05-23 at 13.07.44.png

      Thanks

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

        Hey @InterfaceGuy,

        thank you for reaching out to us. Script Manager scripts can have their icon changed from the File menu of the Script Manager.
        e7156284-8b42-4c7c-87d3-1eafd3427a24-image.png

        I have moved your topic to General Talk as it is not related to our APIs. For details about this, please refer to the end user documentation and end user support. This is not an SDK topic.

        Thank you for your understanding,
        Ferdinand

        MAXON SDK Specialist
        developers.maxon.net

        1 Reply Last reply Reply Quote 0
        • ferdinandF ferdinand moved this topic from Cinema 4D SDK on
        • M
          m_adam
          last edited by m_adam

          Hi another way of doing it is to name a 32x32 TIF icon like the .py file and place it along the script.

          There is an example in github script_custom_icon_r13.py script and it's icon script_custom_icon_r13.tif.

          Cheers,
          Maxime.

          MAXON SDK Specialist

          Development Blog, MAXON Registered Developer

          1 Reply Last reply Reply Quote 1
          • I
            InterfaceGuy
            last edited by

            Thank you so much!
            In the future I'll be more mindful to post in the right category 🙂

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

              Hey @InterfaceGuy,

              you did nothing wrong here, that was an understandable mistake and we do not mind moving topics from time to time. But at the same time we still have to uphold our rules.

              Cheers,
              Ferdinand

              MAXON SDK Specialist
              developers.maxon.net

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