Tool & Objects DetectHandle
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 08/07/2010 at 17:00, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11
Platform:
Language(s) : C++ ;---------
Hello,I am wondering witch part of the ToolData plugin determines if tool will allow selected object MyObject::DetectHandle to be called. As an example, move, rotate.. tools allow this.
I tried to derive such tool from LiquidTool example, but with no luck, by default LiquidTool doesn't allow DetectHandle to be called.
Thanks.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/07/2010 at 15:35, xxxxxxxx wrote:
To clarify a bit more, what I need is basically an empty tool, that allows detect handles to be called, if I strip the the example to:
#include "c4d.h" #include "c4d_symbols.h" #define ID_LIQUIDTOOL 1000973 class LiquidToolData : public ToolData { public: virtual LONG Draw(BaseDocument *doc, BaseContainer &data, BaseDraw *bd, BaseDrawHelp *bh, BaseThread *bt, LONG flags); }; LONG LiquidToolData::Draw(BaseDocument *doc, BaseContainer &data, BaseDraw *bd, BaseDrawHelp *bh, BaseThread *bt, LONG flags) { return DRAW_AXIS|DRAW_HANDLES; } Bool RegisterPrimitiveTool(void) { // decide by name if the plugin shall be registered - just for user convenience String name=GeLoadString(IDS_PRIMITIVETOOL); if (!name.Content()) return TRUE; return RegisterToolPlugin(ID_LIQUIDTOOL,name,PLUGINFLAG_TOOL_EVALUATEHANDLES,"liquid.tif","C++ SDK Liquid Painting Tool",gNew LiquidToolData); }
it still blocks...
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/07/2010 at 05:48, xxxxxxxx wrote:
It seems it's only possible for the PSR and selection tools. I've asked the developers to make sure though. I'll let you know if I find out more.
cheers,
Matthias -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/07/2010 at 05:54, xxxxxxxx wrote:
Thanks for the info, btw what do I have to change for it to become a PSR or selection tool, I searched the SDK and forums and found no info on this, is this some internal stuff?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/07/2010 at 06:57, xxxxxxxx wrote:
Originally posted by xxxxxxxx
... is this some internal stuff?
Yes, that's what I meant. The PSR and selection tools seem to use some internal stuff.
cheers,
Matthias