This was a super quick script, scrambled together to unit test a larger bit of functionality.
I think it's pretty straightforward, and there's a relevant comment. So help me understand why this doesn't work. I cast selections to object types all over the place, in all kinds of code. This...