On 06/06/2018 at 21:54, xxxxxxxx wrote:
Cinema 4D Version: R19
Platform: Windows ;
Language(s) : C++ ;
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?
On 07/06/2018 at 02:38, xxxxxxxx wrote:
no, these are pretty much your options.