0
$\begingroup$

I would like to scale an object with object's origin in a certain location. Is it possible to set an object's origin with bpy.ops.transform.resize()?

I’ve examined the official API documentation, but method explanations are still quite scarce.

As far as I understand, there should be an option to set a pivot in float numbers (either in local or global coordininates).

$\endgroup$
0
$\begingroup$

You can use "center_override" for this. Here is the code:

bpy.ops.transform.resize(value=(1, 1, 1), center_override=(42, 42, 42))

Happy Blending! :)

$\endgroup$
  • $\begingroup$ Thanks! What kind of coordinates does this argument use? Global or local? Or should I use 'constraint_orientation' to specify it? $\endgroup$ – SagRU Jul 15 at 4:25

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.