How to set aboslute Scaling of an Object?

It looks like .scalingLocal is read-only?
So the implemented code was:
object.scale([object.scalingLocal[0]/newParent.scalingWorld[0], object.scalingLocal[1]/newParent.scalingWorld[1], object.scalingLocal[2]/newParent.scalingWorld[2]]);
Am open to advice on whether that’s as compact a form as is achievable

object.scale() is multiplicatory, you can also call object.resetScaling() and then set it by calling object.scale() after

Ah ok - that makes sense to set “absolute scale”, do a resetScaling(), then an object.scale