I was trying to figure out the following problem. If given two objects A and B, A is scaled non uniformly (i.e. scaled along Z axis), B have no scale transformation - can B object be scaled according to A worlds scale direction and magnitude, which additionaly can be modified by rotation.
I already did somewhat succesfull attempt using directly python, here is an example:
but I am curious if this could be done in Animation Nodes or Sverchok easily.
A little clarification
In the first state the scaling object (red arrow) has orientation 0 and scale of 1 i.e. it has no effect on the target object (black rectangle).
In the second state - the arrow is rotated 47 degrees CW and scaled by factor of 2. The rectangle is scaled in the direction of the arrow.
The third state is similar to the second just different orientation and scale of the scaling object.
Basically it is like Rotate object by angle X - apply rotation - Scale object on single axis by given factor - apply scale - rotate back by angle -X - apply rotation.