Refusing a project is a lot different from refusing a project or an event. What if you paint family portraits and you get asked to paint a pornographic scene? You can’t refuse?
Pornography and/or pornographers are not a protected class ... even though what passes for entertainment these days suggests it has the blessing of the powers that be.