Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    Tool & Objects DetectHandle

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 415 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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...

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            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?

            1 Reply Last reply Reply Quote 0
            • H Offline
              Helper
              last edited by

              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

              1 Reply Last reply Reply Quote 0
              • First post
                Last post