Timeline for How to move object while tracking to mouse cursor with a modal operator?
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 30, 2019 at 21:04 | comment | added | Anima tionsvfx | Yea Im talking about the mouse cursor. The reason I want to use custom volume snapping is because I'd like to avoid using transform operator since it interferes with the modal. That way I can just have it run as a handler. I just want the empty that is being snapped to the volume to 'track to'(like the constraints) towards the mouse cursor. Instead of having that empty's rotation just be static. | |
Aug 30, 2019 at 13:46 | answer | added | lemon | timeline score: 10 | |
Aug 30, 2019 at 11:42 | comment | added | Martynas Žiemys | There is a 3d Cursor in Blender and of course mouse cursor as well so it's kind of important to mention which one you are referring to by 'cursor' :) . Your example shows snapping to a surface, so this functionality is already in transform operators. You can enable snapping, set it to surface and then hit g and it's done. You can make a model operator set it up for snapping then actually use transform operator and then set the snapping settings to what they were before at the end of the operation. media.giphy.com/media/fSY5sJsuZRgtBjZgxe/source.gif | |
Aug 30, 2019 at 11:26 | history | edited | Martynas Žiemys | CC BY-SA 4.0 |
added 91 characters in body; edited title
|
Aug 30, 2019 at 8:09 | comment | added | Anima tionsvfx | Basically have the object orientation follow the mouse, here's an example from another add-on: imgur.com/gallery/cO1GjkT | |
Aug 30, 2019 at 5:30 | comment | added | Martynas Žiemys | Hi. What exactly do you mean by 'tracking to cursor'? What kind of movement would that be? | |
Aug 30, 2019 at 4:57 | history | asked | Anima tionsvfx | CC BY-SA 4.0 |