Parameterize coordinate index in the materials texture coordinate node

As far as I can tell, there’s no elegant way to dynamically change which UV index is being used in the texture coordinate node. Instead, you have to create multiple nodes and pick them via switch statement.