Oh! sorry @fwilleke80 I misread your first message.
@ferdinand, I think I got confused from the beginning. I made a copy of my code from an objectData plugin to a scenehook plugin without changing DRAWPASS to SCENEHOOKDRAW
Everything is working just fine now(... except the aliasing) but the result is acceptable.
Thanks to both of you!
Thank you @ferdinand! I appreciate the effort you put in your answers. very detailed and clear. Thank you again.
Thank you @fwilleke80 for your answer!
honestly, to be surprised, I'm surprised! seeing the video, I was pretty sure that DrawHUDText() method was used, but how did you manage to get this result ? (smooth text, visible above the safe frame!).. because when I used it, it was ...meh!
First, thank you @ferdinand for your answer!
You cannot draw on top of safe frames inside NodeData.Draw....
By reading this part, should I understand that it's possible to achieve this by using a different plugin type (....a sceenhook plugin I guess) ? if so, how to do it ?
I am trying to display some text in the viewport. to do my tests I'm overriding the Draw method (objectdata plugin). Everything seems to work fine except two small things:
1- The text is not smooth : there is a slight aliasing on it.
2- The text is hidden under the bands that sourround the safe frame. for instance the default "Perspective" HUD text is visible even when you have 100% opaque bands.
def Draw(self, op, drawpass, bd, bh):
if drawpass == c4d.DRAWPASS_HIGHLIGHTS:
bd.DrawHUDText(2, 25, "Perspective")
did I forget something? Any suggestion will be helpful.