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