Mouse Controls

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

On 01/09/2009 at 20:19, xxxxxxxx wrote:

User Information:
Cinema 4D Version:    
Platform:      
Language(s) :

---------
What functions should I look for to get the points to relocate to the location where the user clicks?

Like the brush tool, how do I get the geometry to move based on the location of the mouse cursor?

Thanks,

~Shawn

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

On 01/09/2009 at 21:14, xxxxxxxx wrote:

Tool plugins have access to user clicks in the editor using MouseInput() and GetCursorInfo(). This gives you the coordinates of the cursor and you can check for clicks and drags using the EditorWindow* 'win' argument. You will, of course, need to figure out which points are involved. This could be selected points or the points within a radius of the screen click location.

There are a few Tool plugin examples in the cinema4dsdk source folder.