declaration:
::lua
function copy_image_transform(sid, did) => nil
Take a transformation queue associated with sid, create a copy of it and set the new copy as the active transformation queue for did.
This is a complex function, particularly with racing asynchronous operations etc. and should be handled with care.
caveats:
sid and did cannot be the same object and there is no translation between coordinate spaces, the transforms are still expressed in their respective local coordinate systems, and may resolve to different values after the transfer.
Hidden properties, e.g. original size (for aspect calculations) etc. will also be transferred irrevocably (scale / resize are all calculated against original size).
Any current transformations in did will be dropped silently.
related functions: