[MV] How to change the battler sprite's opacity

Hey there,

I'm trying to find a way to set the battler's opacity to 0 whenever the actor command window is open. When you're done giving your command then they should reappear.

How would you do that? I already managed to set them permanently to opacity = 0 (Sprite_Battler), but where do I have to set it back to 255?
(solved already by using a switch)
I started to write some suggestions but seems the thread is already resolved. Never mind.

Original thread: https://forums.rpgmakerweb.com/threads/mv-how-to-change-the-battler-sprites-opacity.90747/