# Is it possible to set an object's origin with bpy.ops.transform.resize()?

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).

## 1 Answer

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! :)

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