Check out the xform node, which returns the values you need, or download the 'rivet" script from highend.