Try something like this. It will work for XY projection. Also I think you can calculate Size by 1/ObjectRadius or one of options in ObjectBounds.
Offset parameter added to make additional adjustments for ‘relative texture location’.