Tool mode ?



  • 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



  • 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()



  • 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



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



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



  • 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



  • 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



  • 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


Log in to reply