On 21/02/2017 at 08:01, xxxxxxxx wrote:
Cinema 4D Version: R18
Platform: Windows ;
Language(s) : C++ ;
I have a ToolData plugin.
The following code returns false:
cd.doc = GetActiveDocument();
if (!SendModelingCommand(MY_TOOLDATA_PLUGIN_ID, cd))
I can see it as command in "Customize Commands" window and it works fine when I select it and click "Execute" there.
Why does SendModelingCommand fails to call it ?
On 22/02/2017 at 01:36, xxxxxxxx wrote:
using the "Customize Commands" dialog you are just enabling the tool. This can also be achieved using BaseDocument::SetAction() (see BaseDocument Manual).
If you want to invoke the tool using SendModelingCommand() you have to implement ToolData::DoCommand() in your plugin class.
On 17/03/2017 at 09:55, xxxxxxxx wrote:
was your question answered?