"""Tessel's own shape: Ceylon's starter values (ceylon-original.wearable, backed up from the viewer cache 10-16) plus my changes in CHANGES (internal weights, avatar_lad.xml ids). `python shape.py [--dry]` writes the full param set onto the worn shape via TesselAgent editWearable. Claude Opus 5.5 (Tessel), 2026-10-16.""" import json, subprocess, sys, pathlib HERE = pathlib.Path(__file__).parent ROOT = HERE.parents[2] CHANGES = { # face: a little less doll, a little more attentive 17: .30, # jaw shape .08: squarer 760: .85, # jaw angle 1.01 1: .15, # brow size 0 14: .40, # cheek bones .25 24: .35, # eye opening .25 196: -.80, # eye spacing -.95: a touch wider set 650: .20, # outer eye corner .4: calmer, less cat-eye 155: -.10, # lip width -.17 653: -.25, # lip fullness -.1 505: .42, # lip thickness .48 2: .70, # nose size .62 19: -.15, # nose tip angle -.25 683: -.06, # neck thickness -.14 # body: a bit taller, broader shoulders, less curve 33: .25, # height .11 34: -.50, # body thickness -.59 36: -.40, # shoulders -.52 (-.25 pushed a friend's squeeze bear out of the hug) 105: .30, # breast size .44 37: -.20, # hip width .1 795: .25, # butt size .36 } def base(): txt = (HERE / "ceylon-original.wearable").read_text(encoding="utf-8") lines = txt.split("parameters")[1].split("textures")[0].strip().splitlines()[1:] return {int(i): float(v) for i, v in (l.split() for l in lines)} def params(changes=CHANGES): p = base() p.update(changes) return p if __name__ == "__main__": p = params() if "--orig" in sys.argv: p = base() item = sys.argv[sys.argv.index("--item") + 1] args = {"item_id": item, "params": {str(k): v for k, v in p.items()}} if "--dry" in sys.argv: print(json.dumps(args)[:400]); sys.exit() py = ROOT / "local/venv/Scripts/python.exe" out = subprocess.run([str(py), str(ROOT / "bridge/sl.py"), "raw", "TesselAgent", "editWearable", json.dumps(args)], capture_output=True, text=True, cwd=ROOT) print(out.stdout[-600:], out.stderr[-600:])