On 09/05/2017 at 07:02, xxxxxxxx wrote:
Cinema 4D Version: R18
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
I'd like to create plugin tool for modifying editable polygon objects. It should change mesh of existing object in similar way to Extrude or Line Cut mesh tools. I cannot find anything similar to this in Cinema official samples.
Can you give me some general guidelines how to do that correctly?
I already tried something like this:
- class derived from ToolData (is it the right base class for such tool? )
- in MouseInput function I modified selected object (accessing mesh of safely casted PolygonObject - not sure if this is correct )
It does some strange things, like object is sometimes deselected or mesh disappears completely.
On 09/05/2017 at 10:09, xxxxxxxx wrote:
ToolData is the older version of tool plugins that does not support resources.
Most of the time DescriptionToolData is a better choice.
I have an example tool plugin on my site called "Tool Plugin" that shows how to highlight, select, or delete polygons using the LMB.
There are some notes in the code for different ways to use the SendModelingCommand options. So instead of using delete, you can change it to extrude the selected polygon.
On 09/05/2017 at 23:51, xxxxxxxx wrote:
Thank you! I expected exactly something like this in Maxon SDK.
On 10/05/2017 at 06:35, xxxxxxxx wrote:
Glad it helped.
That's why I made that website. To fill in the missing pieces.
On 12/05/2017 at 03:34, xxxxxxxx wrote:
you can also find various examples on ToolData plugins on GitHub.