Fading in and fading out text / Text opacity

How does one accomplishes this? This is possible in the default engine as evidenced by the how map display names fade in and out during map transfers. Specifically, I'm using a combination of eventing and hudell's Orange HUD to create a HUD. And I need to fade out the text (and the rest of the HUD) during conversation or cutscenes and fade in again after it's over. And while I know it's possible to achieve a similar effect by making the texts in png files and manipulating them using picture commands to change opacity and such, it's terribly inefficient and makes a huge mess on the event window itself. Any help and suggestions is appreciated, thanks in advance.

Original thread: https://forums.rpgmakerweb.com/threads/fading-in-and-fading-out-text-text-opacity.69817/