1
$\begingroup$

After a few hours of searching, I have not found documentation on how to emulate the pressure of the "G" key that allows you to move an object freely with the mouse. I have a modal function and I would like to insert this command to select an object and keep it on the mouse.

the command on blender suggests bpy.ops.transform.translate() but I can not find options for this.

$\endgroup$
  • $\begingroup$ This question was asked previously and don't have an answer, may be there's no way to do that, but don't delete your question, may be now it would have a answer. $\endgroup$ – Yash Feb 10 at 10:32
  • $\begingroup$ I think is possible. Addon "Snap utilities" have inside a function "Move" and that function similar to what I'm looking for :) $\endgroup$ – Pastrokkio Feb 10 at 22:14
  • $\begingroup$ If you have fixed that, post your answer so others can see it.. $\endgroup$ – Yash Feb 11 at 7:07
1
$\begingroup$

I've found this question searching solution for same one. I use this line : bpy.ops.transform.translate('INVOKE_DEFAULT'). It emulates the "G" key for me.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.