MZ Changing the actors' faceset displayed in VisuStella's Save Core?

As per the title. I have a different faceset with smaller images that I use in menus, but depending on when the game autosaves, the save/load menu may display the on-map faceset instead. VisuStella's Save Core offers a plugin parameter to customize with JS what the save slots will display:

JavaScript:
// Declare Variables
const info = arguments[0];
const rect = arguments[1];
const lineHeight = this.lineHeight();
const padding = this.itemPadding();
const c1 = ColorManager.dimColor1();
const c2 = ColorManager.dimColor2();

// Draw Actors
const minimumScale = true;
this.drawCenteredPicture(info.picture, rect.x, rect.y - 75, rect.width, rect.height, minimumScale);
const ch = this.actorStyle() === 'face' ? ImageManager.faceHeight : ImageManager.saveMenuSvBattlerWidth;
const cy = rect.y + ((rect.height - ch) / 2) + 175;
this.drawActors(info, rect.x + padding, cy, rect.width - padding * 2, ch);

// Draw Gradients
this.contents.gradientFillRect(rect.x, rect.y, rect.width, lineHeight, c2, c1, true);
const gy = rect.y + rect.height - lineHeight * 2;
this.contents.gradientFillRect(rect.x, gy, rect.width, lineHeight * 2, c1, c2, true);

// Draw Description
y = rect.y + lineHeight * 2;

this.setWordWrap(true);
this.drawDescription(info, rect.x + padding, y, rect.width - padding * 2, 'left');
this.resetWordWrap(false);

// Draw Data
this.contents.fontSize = 18;
y = rect.y + rect.height - lineHeight;

this.drawTimestamp(info, rect.x + padding, y, rect.width - padding * 2, 'center');
y -= lineHeight;
this.drawPlaytime(info, rect.x + padding, y, rect.width - padding * 2, 'center');
if (info.gold) {
   // y -= lineHeight;
   // this.drawCurrency(info, rect.x + padding, y, rect.width - padding * 2);
}

I think it's the drawActors part that makes actor graphics display in the save slots? If so, how would I modify this section so that it'll display a different faceset than the one assigned to each actor? The graphic in question has their faces arranged in the same position, so I hope that's not an issue. However, there is a face graphic actors may switch to during some sort of transformation (these don't fit in the original 8 face slots and I don't know if it'll break when I put those faces under the original ones like some tips and tricks point out), and I wonder how to make it take this into account also, if that makes sense. 😅
I think it's the drawActors part that makes actor graphics display in the save slots?
Yes. However, the rest of it is supremely unhelpful. It's not at all intuitive what kind of object "info" is (for example, Game_Actors do not have a picture property).

And the functions being used, drawCenteredPicture() and drawActors(), are not a part of MZ's code. So we don't know what kind of arguments they're expecting to receive because their code is inside this obfuscated plugin.

So...you could try sticking random things in there, but who knows whether it's supposed to be a filename, an actual reference to an image, a bipedal cow...?

Is it not possible to edit whatever you're using for your map HUD to load the portraits differently so that you don't have to be changing the actor images back and forth? That seems like the much more effective approach.
Ah, I forgot to mention which plugin I'm using for the HUD, it's VisuStella's frontview UI, which sadly didn't seem to have any options to change this. I kind of assumed the drawActors function was already part of MZ's code, my mistake. The way I change faces is using ct_bolt's CustomScriptAnywhere and make it reserve a common event (in which the HUD visibility is toggled and faces are changed with the regular event command) to replace the menu opening function, and I could possibly do the same for the save screen if I knew what functions to use for it.

1692020146697.png

(pre/post script only contain the reserve common event script call, so nothing's cut off)
Why doesn't that already work? Are you using function calls to go directly to the save screen without using the menu?

The VisuStella plugin you mention includes a Battle Portrait and Frontview UI Portrait notetag to specify a portrait other than what's assigned to the actor in the database. Why isn't that what I asked about in my first reply?
The battle portrait is actually used for bust images displayed during actor command, not for the faces. If I open the menu to access the load menu it'll work, but if the save screen is accessed through any other means, it may display the wrong facesets. I actually realized just now I can call the actor images change command before opening the save screen, but I wonder if it may have unforeseen consequences. Is there no way to make any menus just display a different faceset (script call or otherwise) instead of the one tied to the actor, if it's not the actor info part in my original post? 😅
Of course you can change what the regular Escape menu shows, but isn't that loaded up with VisuStella stuff, too?

The Frontview UI Portrait notetag doesn't do what you want?
Like I said, the frontview UI portraits only affect battle, where the bigger facesets are used. In any sort of menu (particularly, they are displayed in the skill, save, load and equip menus) I want it to switch over to the smaller one. The code in my original post is the part that controls the images and actor info for VisuStella's save/load plugin, but yes, I'm also using their main menu core. Right now it works already by calling common events, but I'm not sure if it's the right way to handle this part (may produce bugs in the future). 😅

(edit: the portrait notetag doesn't control any facesets)
Like I said, the frontview UI portraits only affect battle, where the bigger facesets are used.
I think what you're getting at (and neither your prior posts nor the VisuStella documentation say this) is that when the notetag says "portrait" it means what the rest of the world refers to as "bust". And they're displayed in addition to everything else that's on the screen.

The typical use of the term "portrait" in RPG Maker is the face, with "faceset" meaning a specific 4x2 arrangement of portraits.

Hopefully that will clear some things up if anyone else looks through this tangled mess.

Original thread: https://forums.rpgmakerweb.com/threads/changing-the-actors-faceset-displayed-in-visustellas-save-core.160298/