This tool automatically export presets from existing scenes and collects them in an "extracted" folder under presets. The presets will use the thumbnail for the source scene.
This is for turning "Looks" that people package as a junk scene, instead of properly distributing appearance presets, into something usable, so you can safely hide all that garbage in your scene browser.
The behavior is comparable to ZFHX's "Var Looks Scanner plugin", although the implementation is entirely different.
This is a standalone python script, not an in-program plugin. This requires python3 to be installed and working already, and optionally uses the tqdm package if installed.
Usage Instructions:
If this script finds an obviously broken file, it will rename it with the .invalid extension to prevent further errors.
Future todos:
- Options to extract other presets (clothing) from scenes
- Enhancements to argparse, logging, output options, etc
- A better system for ignoring ephemeral morphs like expressions and impacts. Currently this uses a very short blacklist in order to avoid spamming the folder with obvious duplicates, but it's not very sophisticated.
This is for turning "Looks" that people package as a junk scene, instead of properly distributing appearance presets, into something usable, so you can safely hide all that garbage in your scene browser.
The behavior is comparable to ZFHX's "Var Looks Scanner plugin", although the implementation is entirely different.
This is a standalone python script, not an in-program plugin. This requires python3 to be installed and working already, and optionally uses the tqdm package if installed.
Usage Instructions:
- - Save the file to your root directory -- the same folder as AddonPackages -- as a .py python script
- - Run python3 extract_appearance.py {files}..., where {files}is a list of scene .json files or .var archives, or globs to those files.
- For instance
python3 extract_appearance.py AddonPackages/Anon.SceneName.1.var to extract appearance presets from one scene,
python3 extract_appearance.py "AddonPackages/Anon*.var" to extract all scenes by Anon, or
python3 extract_appearance.py "Saves/scene/*.json" "AddonPackages/*.var" to extract absolutely everything.
- For instance
If this script finds an obviously broken file, it will rename it with the .invalid extension to prevent further errors.
Future todos:
- Options to extract other presets (clothing) from scenes
- Enhancements to argparse, logging, output options, etc
- A better system for ignoring ephemeral morphs like expressions and impacts. Currently this uses a very short blacklist in order to avoid spamming the folder with obvious duplicates, but it's not very sophisticated.