I'm trying to write a part of a script that would scale object locations away from the 3d cursor (so the object size itself wouldn't change, but the object would move away from the 3d cursor). It works perfectly fine in the 3d view when I'm not using code and have location selected in the transform affect only options, but I can't get it to work on python code. Here's my (not working) code:
bpy.context.scene.tool_settings.use_transform_pivot_point_align = True
bpy.ops.transform.resize(value=(1.5, 1.5, 1.5))
Right now it just scales the active object where it is instead of what I need it to do. Thanks in advance!