How to make ally battlers invisible during skills

I'm looking for a simple way to temporarily make a character invisible in battle. I have summon spells like in many Final Fantasy games, and I want my whole party to disappear while the animation plays. I also want an ability for my ninja character where she disappears and has full evasion from enemy attacks. The last thing I want in my game is a way for my allies to disappear when they teleport out of battle.
IIRC you didn't want to use VS Battle Core. I think ATT_Turan has plugins that have similar functionalities where you can run code at certain points. I think you can use them and then something like:
HIDE
SceneManager._scene._spriteset._actorSprites.forEach(sprite => sprite.opacity = 0);
SHOW
SceneManager._scene._spriteset._actorSprites.forEach(sprite => sprite.opacity = 255);

For the ninja you can use the same with on add state and on erase state. Then you can give them huge evasion on the state or maybe use those Turan notetags to make attacks miss against them.
And for the teleport stuff maybe you can use the escape effect.

EDIT: Or to be clear for the ninja skill target the specific actor sprite.
For the summon-style animation where the party disappears during the skill, perhaps you could use @rpgLord69's suggestion without any Plugins?

Add the hide script command as part of the damage formula of your skill, then make a common event that calls the show script. Fairly certain common events executed as part of skills are executed after animations and damage.

EDIT: I think the ninja skill could maybe be done with troop events, where the damage formula for the skill (or a common event, if there is no damage formula) calls the script to set opacity to 0 and sets TGR to 0%, then each turn in each troop, check if the state has worn off and, if so, set the opacity back to 255, but it'd probably be cleaner to just have opacity change on application and removal of the state, which, to my knowledge, would require a Plugin.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-ally-battlers-invisible-during-skills.183306/