Snap Settings



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

    On 03/11/2005 at 00:18, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   9 
    Platform:   Windows  ;   
    Language(s) :     C++  ;

    ---------
    Hello ...

    How can I use snapping in my tool plugin ...
    When register the tool I coded like below ...

    RegisterToolPlugin(ID_MYTOOL,name,PLUGINFLAG_TOOL_SNAPSETTINGS,"MyTool.tif","MyTool ",gNew MyToolData);

    But there is no change ...
    I see nothing more ...
    What I hope was I will see the snapping dialog ( like in Move Tool ) ... But didn't ...

    Then I use DetectSnapping and test the document is in snapping mode ... But it's also not ...

    DetectSnapping *ds=DetectSnapping::Alloc();
    //The same with/without this one line below ds->Init(doc,bd,doc->GetActiveObject(),Vector(0,0,0),0,TRUE,TRUE,TRUE);
    if(ds->IsEnabled(doc))
    {
            MessageDialog("Snappable");
    }
    else
    {
         MessageDialog("Unsnappable");//This is always shown
    }

    So how can I use it ...?

    With all my respects
    ZawMinTun



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

    On 06/11/2005 at 22:55, xxxxxxxx wrote:

    Any help ?

    Anyway ... thank you all ...

    ZawMinTun



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

    On 08/11/2005 at 22:13, xxxxxxxx wrote:

    Hello ...

    I searched in the old threads and I found this ...
    The questioner is Kabe and he asked about "Snapping in tool plugins" and the answer is of Mikael ...
    The answer is ...
    "Sorry, there's no direct support for snapping in tool plugins. I've forwarded this as a suggestion to the developers."

    But date is Aug 2003 ...
    So let me ask "Is the answer still the same?"

    ZawMinTun


Log in to reply