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

    Custom viewport widget

    SDK Help
    0
    2
    715
    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
      Helper
      last edited by

      On 06/06/2018 at 21:54, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R19 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hi,
      Assume I want to manipulate an object, and have foreseen a CommandData/GeDialog with sliders, checkboxes and buttons to do so interactively.
      Now, if I wanted to replace this and provide a viewport widget, similar to the object axis or the rotation bands, what would be the options available?

      I think to understand there seem to be 2 solutions possible:
      1. Use a ToolData/DescriptionToolData for interacting with the object. The widget would be drawn in the Draw function while interaction, hittesting, etc ... would be handled in MouseInput and/or GetCursorInfo functions.
      2. Use a SceneHookData, which basically has the same functions as the ToolData, but it allows the user to keep using current active tool and not have to switch to "my tool" (see point 1).

      Am I missing better alternatives?

      thanks,
      Daniel

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

        On 07/06/2018 at 02:38, xxxxxxxx wrote:

        Hi Daniel,

        no, these are pretty much your options.

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