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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Tool mode ?

    SDK Help
    0
    8
    735
    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
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 10/04/2004 at 04:31, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.200 
      Platform:   Windows  ;   
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      Hello! Is it possible to retrieve the mode that c4d is in? I would like to notify a plugin if the user has selected the rotate, translate or scale tool.

      Thanks

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 10/04/2004 at 05:05, xxxxxxxx wrote:

        BaseDocument::GetAction()

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 10/04/2004 at 05:57, xxxxxxxx wrote:

          Thanks, but is´nt that for the C++ SDK? I cant find any docs on it in the COFFEE SDK

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

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 10/04/2004 at 08:38, xxxxxxxx wrote:

            upps. Hmm, I don´t think it´s possible then. you cannot get General settings of the document in COFFEE so this workaround doesn´t work either.

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

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 13/04/2004 at 15:38, xxxxxxxx wrote:

              Samir is right. This is currently not possible in C.O.F.F.E.E.

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

                THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                On 28/10/2004 at 14:16, xxxxxxxx wrote:

                Howdy,

                OK, so how does GetAction() work in C++? The SDK says this:

                LONG GetAction(void)

                Get the current tool in the editor.

                Return
                LONG

                The return values are the IDM_MOVE, IDM_SCALE etc. All these IDs are listed in c4d_symbols.coh in the resource folder of the main application. The IDs used need to be copied over manually.

                I tried this...

                LONG activeTool = doc->GetAction();
                if (activeTool == IDM_MOVE)
                {
                     GePrint("Move Tool active");
                }

                ...but nothing happens.

                Then I tried this...

                LONG activeTool = doc->GetAction();
                GePrint("activeTool = "+LongToString(activeTool));

                ...and it printed out this: activeTool = 200000088

                In the c4d_symbols.coh file, it's listed: IDM_MOVE     = 12356,

                When it said, "The IDs used need to be copied over manually" I thought it meant that I have to copy that line and paste it into my plugin's header file with the other enum's.

                I'm a bit confused. Can someone steer me in the right direction?

                Adios,
                Cactus Dan

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

                  THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                  On 02/11/2004 at 15:04, xxxxxxxx wrote:

                  I guess that's because the former move tool was built into the CINEMA core and therefore had an IDM_* ID.
                  In CINEMA R9, the move tool is implemented inside the Plugin Resource/modules/modeling, so the ID changed.

                  The new ID is still part of the API, you can find it as ID_MODELING_MOVE in Resource/_api/ModelingIDs.h.

                  Michael

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

                    THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                    On 02/11/2004 at 17:57, xxxxxxxx wrote:

                    Howdy,

                    Ah, that works. Thanks Michael.

                    Adios,
                    Cactus Dan

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