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

    BaseDraw.DrawHUDText() Zbuffer

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 541 Views
    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 Offline
      Helper
      last edited by

      On 16/03/2018 at 03:32, xxxxxxxx wrote:

      Hello. Is there a way to bring the text drawn with .DrawHUDText() in front of everything. And if I have multiple different text objects - to set the correct 'layering' between them. BaseDraw.LineZOffset() doesn't seem to work, if I set it to any positive value - the text is no longer visible at all.

      Thanks.

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

        On 19/03/2018 at 03:33, xxxxxxxx wrote:

        Hi,

        As noted in the BaseView / BaseDraw Manual 2D Drawing Operations, DrawHUDText() and DrawMultipleHUDText() should be used from within a scene hook Draw().
        You don't rely on the scene hierarchy plus you can draw in whatever pass and order needed in a scene hook, so it's recommended to perform 2D drawings from this type of plugin (see the article 2D viewport drawing using a SceneHook[URL-REMOVED]).

        Unfortunately it's not possible to write SceneHookData plugins in Python.


        [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

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