Plugin Cafe Homepage
Forum Home Forum Home > Plugin Cafe > SDK Help
  New Posts New Posts
  FAQ FAQ  Forum Search

Custom viewport widget

Author
Message
  Topic Search Topic Search
C4DS View Drop Down
Member
Member


Joined: 2015 Dec 01
Online Status: Offline
Posts: 235
Direct Link To This Post Topic: Custom viewport widget
    Posted: 2018 Jun 06 at 9:54pm

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
Back to Top
Andreas Block View Drop Down
Forum Moderator
Forum Moderator
Avatar

Joined: 2014 Oct 01
Location: Hannover
Online Status: Offline
Posts: 1878
Direct Link To This Post Posted: 2018 Jun 07 at 2:38am
Hi Daniel,

no, these are pretty much your options.

Cheers,
Andreas
SDK Support Engineer
Back to Top

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.61 [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in 0.109 seconds.