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

    Transparency of GeDialog?

    Cinema 4D SDK
    r21 python
    6
    8
    1.0k
    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 control the transparency of the GeDialog when it is opened? Currently, it is opaque (i.e. a full gray where you can't see the background). I was planning to have an 80% transparency so I can see the background.

      The only transparency I can see in the documentation is the SetTransparency and GetTransparency, but correct me if I'm wrong, it's only available to polygons.

      Is there a way around this?

      Thank you

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

        Hi,

        @bentraje said in Transparency of GeDialog?:

        Is there a way to control the transparency of the GeDialog [...]

        To my knowledge there is currently no option to make a GeDialog partially or fully transparent. In the old forum there were quite a few threads on that subject.

        If you want some sort of non-rectangular shape for your menu, you will have to spawn multiple dialogs as @maxime did suggest in your initial question.

        SetTransparency is a method of BaseDraw meant for user defined polygon drawing operations to render these in a transparent style. You could technically also render your menu directly into a viewport via their associated BaseDraw, but your menu would then be restricted to viewports and also the whole approach would probably be a bit more technically challenging compared to a GeDialog approach.

        Cheers
        zipit

        MAXON SDK Specialist
        developers.maxon.net

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

          Thanks @zipit for the confirmation. No worries, it's only for cosmetics really.

          Have a great weekend ahead! 🙂

          1 Reply Last reply Reply Quote 0
          • ManuelM
            Manuel
            last edited by

            hello,

            Just to confirm what @zipit came with, it's not possible to handle GeDialog transparency.

            Cheers,
            Manuel

            MAXON SDK Specialist

            MAXON Registered Developer

            1 Reply Last reply Reply Quote 0
            • JH23J
              JH23
              last edited by

              Hi,
              I wanted to check if this is not already possible, and also ask if you have any ideas for a possible alternative, other than making this UI in the viewport.
              regards,
              James H.

              gheyretG 1 Reply Last reply Reply Quote 0
              • gheyretG
                gheyret @JH23
                last edited by

                Hi @JH23

                If you are using Python, you might consider trying PySide6 for creating your UI.
                As far as I know, starting with Cinema 4D 2024.2, they have resolved some import issues related to third-party libraries, making it possible to import PySide6 in Cinema 4D Python.

                However, it should be noted that the Maxon SDK team does not recommend using other third-party UI libraries and will not provide support for any issues arising from their use. Therefore, you will need to resolve any problems encountered on your own.

                Cheers!
                Gheyret

                www.boghma.com

                1 Reply Last reply Reply Quote 1
                • JH23J
                  JH23
                  last edited by

                  Hi,
                  I reviewed your proposal, it works, but I still feel that ending up using external libraries ends up being a somewhat more uncomfortable problem than not having transparent dialogs, it would be nice if in a future version these details were possible, I have more questions but I prefer to open another thread or investigate better, I appreciate your response.

                  Cheers,
                  James H.

                  1 Reply Last reply Reply Quote 0
                  • i_mazlovI
                    i_mazlov
                    last edited by

                    Hi James,

                    from my side there's nothing to add to Gheyret's answer. As of now there's no such option to achieve transparency of the GeDialog. Using third-party libraries could be a potential option, but we don't provide any support for this case.

                    Cheers,
                    Ilia

                    MAXON SDK Specialist
                    developers.maxon.net

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