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

    HUD elements and buttons?

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 214 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 21/08/2016 at 14:27, xxxxxxxx wrote:

      So I was wondering. Is it possible to make a plugin that creates HUD-like buttons that overlay on the viewport but still behave as buttons and sliders?

      See here: https://www.dropbox.com/s/imu8h40bp3hdlic/mockup.jpg?dl=0

      I've never done any viewport drawing type stuff, so if it is possible, does anyone have some examples for getting started with it they could point me to?

      Much appreciated.

      ~Bret

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

        On 22/08/2016 at 02:38, xxxxxxxx wrote:

        Hi Bret,

        unfortunately it is not possible in Python, yet.
        Internally the HUD elements are realized via a SceneHook, which is not available in Python. Other plugin types do have the Draw() function in Python, but are lacking any way of receiving the needed input events.

        So you'd have to do it in C++...

        On the other hand... it looks like some kind of timeline controls you are trying to achieve. Something like this could already be achieved with the build in tools. The buttons for play, fast forward etc. can be dragged directly into the viewport (and configured to display just an icon) from the "Customize Palettes" dialog or from the commander (Shift-c). And while there is no way to get the timeline slider into the viewport, it actually is not needed. While hovering the mouse over the viewport, simply press and hold the j key (for jog) then click and drag, you are directly moving through the timeline back and forth.

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