Viewer: export button for hair and fur, with full strands #185

Manually merged
github merged 3 commits from gh-pr/185/head into gh-pr/185/base 2026-11-26 20:16:24 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-24 17:35 UTC · original
holdmysocks:claude/people-fur-export → master · +76 −6 · 4 files · 3 commits · merged 2026-11-24 17:58 UTC

For #146. The animal-fur option (sixng grooms --animal) from the earlier PR is already on master, so this PR only adds the button.

What changes

  • The model viewer's "Hair and fur (grooms)" panel has an "Export N shown groom(s)" button. It writes the grooms shown on the current model as GLB line strips to <work>/out/hair/<model>/grooms/packs/: a character's hair, brows and beard, an animal's fur, or the grooms ticked in the list.
  • A "full strands" checkbox (on by default) writes the full strand set at the panel's density, with a growth.json per groom. It runs the same code as sixng grooms --full.
  • The export runs on a worker thread; the panel shows a spinner and then where the files went.
  • Groom export now uses the cached groom list when there is a work folder, instead of reading all 20,010 grooms again. The first button run took about nine minutes without this and about two and a half with it, including loading the character.
  • --export-hair on the command line triggers the same export once the hair is shown (used to test the button).

Checked

  • Workspace tests pass.
  • Ran the export through the viewer on two characters: 7 grooms for one (hair pieces and brows) and 4 for the other, each with full strands and a growth.json.

Not covered

  • The button was triggered with the command-line switch, not clicked by hand.
  • Not run on an animal in the viewer. The fur shown for an animal is in the same selection the button exports, so it should be covered, but that was not tried.
  • A per-model folder is used so an existing sixng grooms export and its index are not overwritten.
**@⁠holdmysocks** on GitHub · 2026-11-24 17:35 UTC · [original](https://github.com/holdmysocks/SixNG/pull/185) `holdmysocks:claude/people-fur-export` → `master` · +76 −6 · 4 files · 3 commits · merged 2026-11-24 17:58 UTC For #146. The animal-fur option (`sixng grooms --animal`) from the earlier PR is already on master, so this PR only adds the button. ## What changes - The model viewer's "Hair and fur (grooms)" panel has an "Export N shown groom(s)" button. It writes the grooms shown on the current model as GLB line strips to `<work>/out/hair/<model>/grooms/packs/`: a character's hair, brows and beard, an animal's fur, or the grooms ticked in the list. - A "full strands" checkbox (on by default) writes the full strand set at the panel's density, with a `growth.json` per groom. It runs the same code as `sixng grooms --full`. - The export runs on a worker thread; the panel shows a spinner and then where the files went. - Groom export now uses the cached groom list when there is a work folder, instead of reading all 20,010 grooms again. The first button run took about nine minutes without this and about two and a half with it, including loading the character. - `--export-hair` on the command line triggers the same export once the hair is shown (used to test the button). ## Checked - Workspace tests pass. - Ran the export through the viewer on two characters: 7 grooms for one (hair pieces and brows) and 4 for the other, each with full strands and a growth.json. ## Not covered - The button was triggered with the command-line switch, not clicked by hand. - Not run on an animal in the viewer. The fur shown for an animal is in the same selection the button exports, so it should be covered, but that was not tried. - A per-model folder is used so an existing `sixng grooms` export and its index are not overwritten.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:16:22 +00:00
github manually merged commit 9484e4296a into gh-pr/185/base 2026-11-26 20:16:24 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.