How can I hide an instrument staff and yet have that instrument play back?

I have a situation where I need to hide the staff in the Galley view of the full score, but also need it to play back. When I uncheck an instrument from the Full Score in Setup, it mutes that instrument. What method do I use to hide the visibility in the score without muting the MIDI output?

Use an instrument filter in Galley view.

Janus’ suggestion above is best if you wish to hide from galley view.

As for my own workflow, I generally create a second staff which I rename the player to include the label ‘(PLAYBACK)’, and then choose manual staff visibility > hide. Of course, this will not accomplish your request to hide from galley view (it will only hide from page view / printing / pdf), but it works for me! I might try the instrument filter idea, too.