Elegant way to scale an assembly of 2 objects (which have different origins)?

I have 2 objects, which make an assembly. Every object has its own coordinate system.

The scaling origin should be the origin of object 1.

How can I scale object 2 with the origin/coordinate system of object 1 as the scaling origin?

Using bpy.ops.transform.resize ??

Hey.

Scale it once with 3D manipulator or with add constraint pivot?

Maybe just maybe :wink:

Take care.

I found a workaround: temporarily parenting object2 to object1.