Transforms – How to apply a mark to the parent of selection.$cursor

This thread may be relevant.