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

    Adding graphics to a shader GUI?

    SDK Help
    0
    4
    384
    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
      Helper
      last edited by

      On 10/06/2015 at 06:09, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R15 
      Platform:    Mac  ;  
      Language(s) :     C++  ;

      ---------
      Is there any way to add graphics to a shader GUI?

      I'd like to try and spruce up my plugins a bit, since I'm thinking of selling them. I'm basically looking to do two things:

      1. Add graphics inside the shader GUI (arrows, coloured bars, etc) mixed in with the usual C4D controls

      2. Add a banner (maybe 48px tall) that auto-stretches across the attributes manager at the top of the shader UI

      Is there any way of doing this? These plugins don't have dialogue boxes or anything, which is probably where I'm getting confused- there's a lot of stuff out there for adding graphics to a dialogue, but not a description based GUI in the Attributes Manager.

      -CMPX

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

        On 10/06/2015 at 06:51, xxxxxxxx wrote:

        Hello,

        as discussed many times on this forum there is no dedicated GUI element for images. You have two options:

        • You can use a BitmapButton that displays an image. You find some example on how to create such a BitmapButton dynamically in the Description Object example. Searching the forum you will find many threads discussion BitmapButtons.
        • Or you can use a GeUserArea in combination with a CustomGUI and a CustomDataType. In that GeUserArea you could draw whatever you want to draw. You find some reference code in the "Dots" example.

        Best wishes,
        Sebastian

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

          On 19/06/2015 at 09:00, xxxxxxxx wrote:

          Hello CMPX,

          was your question answered?

          Best wishes,
          Sebastian

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

            On 20/06/2015 at 16:31, xxxxxxxx wrote:

            Yes, sorry, been busy lately.

            The examples in the SDK you pointed out were most helpful. Managed to get something simple working fairly quickly.

            -CMPX

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