Churchill said:
The basic goal I have is to make a "character reload" feature as part of my mod but I'm having difficulty discerning where that action is going on. In the decompiled SDT core I found the characterMenu object and I also see in Loader where there are hooks into various aspects... but I've not figured out where the interaction with the menu is versus where the actual loading occurs.
Anyone familiar enough with the object model to point me in the right direction?
Writing ActionScript which ties into the SDT UI can be a bit tricky. There are a few functions which don't cooperate with proxies (such as the big "Reset" button). The simple answer to your request is
g.inGameMenu.characterMenu.triggerSelect(g.inGameMenu.characterMenu.lastSelectedID);
but this answer may be
too simple. It's similar to the "Revert to Saved" feature that you can find in office software - it will discard any changes (to costume, personality, resistance, etc) which have occured during the current game session. If the user has spent ten minutes assembling a custom character then they'll be very upset if you abruptly wipe away all of their work.
It may be useful to elaborate here --
why are you trying to reload the character and/or
what do you hope to accomplish?
How often do you envision this behaviour occuring, and in what context (e.g. once-per-character during the initialization of your mod, or every five minutes during gameplay)? Would it be triggered by user action or is it a fault-recovery behaviour invoked by the mod itself?
Alternatively - if you're trying to Reload simply because the character is dirty, then there's already a hotkey to remove all strands from the scene. If the character's position and anatomy has become screwy then loading an Animtools file will usually fix it.
If your mod is actually fiddling with character definitions at runtime (e.g. editing them into a new posture, saving them, loading each "posture variant" at the appropriate moment, etc) then you'll need to wait for feedback from someone who's more familiar with the stuff. I haven't even figured out how to get Character folders working on my end :'(