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$

1 Answer 1

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$
1
  • $\begingroup$ Thanks! What kind of coordinates does this argument use? Global or local? Or should I use 'constraint_orientation' to specify it? $\endgroup$
    – SagRU
    Commented Jul 15, 2019 at 4:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .