Transparency of GeDialog?
-
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
andGetTransparency
, but correct me if I'm wrong, it's only available to polygons.Is there a way around this?
Thank you
-
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 ofBaseDraw
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 associatedBaseDraw
, but your menu would then be restricted to viewports and also the whole approach would probably be a bit more technically challenging compared to aGeDialog
approach.Cheers
zipit -
Thanks @zipit for the confirmation. No worries, it's only for cosmetics really.
Have a great weekend ahead!
-
hello,
Just to confirm what @zipit came with, it's not possible to handle GeDialog transparency.
Cheers,
Manuel -
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. -
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 -
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.