now works on component selections as well as curve objects.