Clothing Plugin Manager

Plugins Clothing Plugin Manager

This change attempts to make preset/save handling more complete and intuitive. This has been only partially supported (or just completely broken) in the past, so it might not be fully compatible with previous items. I'm hoping that this is the last overhaul of this functionality and it should be stable from now on.

As always, your feedback is invaluable in my development so please let me know how it works for you! ❤️

The sources of plugin settings in increasing order of precedence are as follows:
  • The 'default.clothingplugins' file.
    • Applies to all clothing in the directory
  • The named default.clothingplugins file.
  • Saved scene settings
    • Only apply during scene load. Force-reloading the plugin will clear this.

Presets now function as follows:
  • Creating a preset will include plugin settings.
  • Loading a preset that contains plugin settings will load them.
    • May also change which plugins are included.
    • If you want a 'no plugins' preset, remove all plugins other than the ClothingPluginManager.
  • Loading a preset with no plugin settings will keep plugins as-is.
    • This is for backwards-compatibility. Old presets that don't contain plugin settings will not clear the plugin list.
  • Can now be used for hair
    • Setup for hair similar, with a few differences:
      • The storable id is always "CustomScalp", not the hair's name
      • If you don't use a custom scalp, it will give you an error when you first load it.
        • It'll still work, just throws an error. Doesn't look fixable without VAM changes.
      • References don't get corrupted when publishing the var, so nothing special to be done there.
    • Guide and some initial plugins incoming...
  • Presets should no longer affect clothing plugins
  • Using "Open In Creator" on an item with clothing plugins should no longer cause it to not save correctly.
    • Note: The saved item still will not have clothing plugins on it.
  • Will now save and load to a default file based on the clothing item's display name. (e.g. My_Clothing.defaults.clothingplugins)
    • This is intended to support multiple clothing items in one directory.
    • A defaults.clothingplugins file can still be used, but will have lower preference to a named file.
  • Added saving and loading of presets.
    • Presets contain a list of plugins as well as all plugin parameters.
      • You no longer need to add individual plugins to the .vaj file if you have a default preset.
    • The "default" preset will be loaded with the clothing item.
    • The precedence should go Manually Loaded Preset > Saved Scene Settings > Default Preset
  • Fixed issue where the ClothingPluginManager wasn't visible in the list.
  • Fixed issue where plugin tab wouldn't show if the clothing was toggled on/off
  • Fixed issue with plugins not always deleting properly on reload (and other scenarios)
  • Some fixes to startup logic. Plugin tab should ideally now always show up correctly.
    • Let me know if it doesn't! 🙏
  • Reloading the plugin will not result in duplicate plugin tabs.
  • The ClothingPluginManager plugin itself might not be visible in the Plugin tab under some conditions (like after force-reload). This doesn't prevent it from functioning properly and is purely visual.
Back
Top Bottom