MZ How do you access a certain object on a scene?

Hello,

I am New to RPG Maker MZ,
I was wondering how do you reference a certain object or window or element on a certain scene instead of editing it globally?

For example : I am using a Plugin that has the ability to change the selection gradient, X & Y and background image within all menus in the game but I want to access only one menu on the Battle scene. Keeping the other set to the default .
Visustellas core plugins have some menu customization options, they are for specific menus and scenes. Maybe they would do what you're looking for?

If it's one of the default scenes, follow the code. Each scene has a variable for each window it creates, so it can reference them later if they need to. In most cases all windows are self-sufficient, but references to them are maintained in each scene. I imagine most plugins with custom scenes would do the same, just in case.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-you-access-a-certain-object-on-a-scene.139263/