It's me again @i_mazlov, sorry ️
I came across another issue caused by the DrawHudText:

Latest posts made by FlavioDiniz
-
DrawHudText interferes with Polygon Pen Tool etc
-
RE: DrawHUDText issue with viewport camera navigation
Thanks a lot @i_mazlov !
The issue is solved ! -
RE: BaseDraw.DrawTexture Issue
Fantastic @i_mazlov !
Both issues are solved, thank you so much !Cheers,
Flavio Diniz -
BaseDraw.DrawTexture Issue
Hi !
In an attempt to circumvent a bug in the DrawHUDText and DrawMultipleHUDText (link below), I'm trying to use the DrawTexture function, but now we have two issues.
(https://developers.maxon.net/forum/topic/15394/drawhudtext-issue-with-viewport-camera-navigation)1 - The first issue is the mouse cursor doesn't orbit to the object in the viewport, it's like the text is being drawn in the whole screen and the camera is orbiting around the text... I tested several Zdepth settings. no luck.
2 - The second issue is the lag, notice the difference in C4D 2023 and 2025 in the video below (problem is also present in 2024).
-
RE: BaseDraw.DrawHUDText in Cinema4D 2024
@ferdinand said in BaseDraw.DrawHUDText in Cinema4D 2024:
But generally speaking, no, DrawHUDText is not broken, at least not our knowledge.
Hi @ferdinand , sorry if this is an inappropriate place to post, but I should remember there's a bug on DrawHudText.
It's not related to the issue @Runner009 related, but this one: https://developers.maxon.net/forum/topic/15394/drawhudtext-issue-with-viewport-camera-navigationI just downloaded the script you provided in the post above and tested in C4D 2024.2.0, and the issue exists, not sure if it was fixed in C4D 2024.4.
Best,
Flavio Diniz -
RE: DrawHUDText issue with viewport camera navigation
I think it must be a bug ! and I'm surprised I haven't heard anyone talking about this so far, since the "DrawHUDText" is so common for people to use
I also noticed the same problem happening with "DrawMultipleHUDText".Thanks!
Flavio Diniz -
DrawHUDText issue with viewport camera navigation
Hi!
I made an script back in C4D 2023 to draw some information on the viewport (filename, camera lens, frame number, etc). It was working perfectly in C4D 2023, but in 2024 it is glitching the viewport camera navigation.
It's like the drawn text is in front of everything and when you click to orbit the camera, you click on the drawn text instead of the object.
Let me try to explain with some GIFs.
2023: I click on the corner of the cube to orbit the camera around it and it works.
2024: I click on the corner of the cube to orbit the camera and the orbit pivot insn't on the cube, but on the center of the screen.
It's not about the navigation mode, I already made sure I'm on the "mouse" mode.
When I delete the script on 2024, everything goes back to the normal, so I know the problem is the script.
and here it is, it's on a python tag:
# Playblast Overlay by Flavio Diniz import c4d def main() -> None: pass def draw(bd: c4d.BaseDraw) -> bool: bd = doc.GetActiveBaseDraw() frame = bd.GetFrame() right = frame["cr"] bottom = frame["cb"] camera = "Camera: "+ bd.GetSceneCamera(doc).GetName() filename = doc[c4d.DOCUMENT_FILEPATH].split("\\",-1)[-1] focal = str(bd.GetSceneCamera(doc)[c4d.RSCAMERAOBJECT_FOCAL_LENGTH]) +" mm" frame = "Frame: "+ str(doc[c4d.DOCUMENT_TIME].GetFrame(doc.GetFps())) bd.DrawHUDText(int(right /2)-300, int(bottom)-20, "{0} | {1} - {2} | {3}".format(filename, camera, focal, frame)) return c4d.DRAWRESULT_OK
Does anyone have any idea of what could be happening ?
Thanks!Flavio Diniz
-
RE: Get edges segments in a polygon object
Awesome @m_magalhaes, works perfect now!
Thank very much!Flavio
-
RE: Get edges segments in a polygon object
Fantastic @m_magalhaes !
works very well! and for the use I'm planning, I will always be using parallel selection segments, so cross selections isn't a issue!
there's an small error, I guess it's happening because there's no polygons to the left to be checked.
I haven't had time to fully read your code yet, but it's already very helpful!
I'll try to solve this error by modifying your code or building another use using you as base.Thank you!
(I'll let it unsolved for today, in case someone wants to post something else, then I'll change to solved)
Flavio Diniz
-
RE: Get edges segments in a polygon object
@PluginStudent @C4DS
ah, so I think this is more complex than I thoughtI guess I have to make a function to compare the edges by using their points...
if two edges shares the same point, it means these two edges are a single segment. So create a BaseSelect of these edges and use it in afor
loop.
It may cause some bugs depending how the geometry is... but at least is a starting point and a tough one for me xDThank you guys!
Flavio Diniz