How to assign the "slice" plane in local coordinates?
I'm trying to add a "Slice" modifier through script.
The source object (to which the modifier is being added), is a sphere. It has been rotated randomly.
There is another object, let's say a plane.
I want the slice modifier gizmo to have the same orientation and position as the plane.
How do I do it?
The catch is that the gizmo transform should be mentioned in the local space of the sphere.
effectively, i need to represent the orientation and position of the plane as local coordinates of the sphere.