feat: clothing lane, character sources, and DCC bridges
Bulk import of the working lanes that were living untracked on the PC. Content: - characters/ Lena/male body lanes, bakes, texture work, run logs - clothing/ garment pipeline, configs, gates, contract docs - garments/ MD-authored garment sources (.zprj/.zpac) - UAL-Lib/ Universal Animation Library 2 source (.blend/.fbx/.glb) - tools/ blender_bridge, iclone_bridge, md_bridge, tailor, glm_agent - docs/, plans/, dev/, .agents/plans/ Repo hygiene: - .gitattributes: LFS now covers .blend, .zprj, .zpac, .obj, .npy and the Reallusion .iAvatar/.ccAvatar/.ccRestore containers. Without this the ~3.8 GB in this commit would land as raw blobs. .png/.jpg are left out on purpose — ~250 are already tracked raw and converting them would rewrite every one without shrinking history. - .gitignore: exclude /accurig/ (~1 GB AccuRig program files, redistributable from Reallusion, nothing authored here) and /dev/null/ (git-lfs hook copies dropped by a `>/dev/null` redirect on Windows). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
# Pari v2 (kapa haka taniko bodice) — tube-with-straps construction.
|
||||
# Straps solve the v1 slide-down (tube settled underbust) AND cover the
|
||||
# avatar's baked-in bra straps. Uses the proven tee shoulder-seam recipe.
|
||||
# QC targets: band top ~1.31 m (above bust), hem ~1.05 m (waist) +-3 cm.
|
||||
# python tools/md_bridge.py --file tools/tailor/md_pari.py --timeout 500
|
||||
import os
|
||||
import tempfile
|
||||
|
||||
report = {}
|
||||
AVATAR_FBX = r"C:\Users\Jeremy\tinqs\animation\tools\tailor\avatar\Lena_QuatSkin_Avatar.fbx"
|
||||
ZFAB = r"C:\Users\Public\Documents\MarvelousDesigner\New Assets\Fabric\(Default for Simulation).zfab"
|
||||
TEX = r"C:\Users\Jeremy\tinqs\animation\tools\tailor\textures\taniko.png"
|
||||
|
||||
utility_api.NewProject()
|
||||
op = ApiTypes.ImportExportOption()
|
||||
op.scale = 10.0
|
||||
op.bAddArrangementPoints = True
|
||||
op.bAutoTranslate = True
|
||||
report["avatar"] = import_api.ImportFBX(AVATAR_FBX, op)
|
||||
|
||||
# Tank-style: shoulder->waist 350 tall, 550/panel (snug over 1083 bust),
|
||||
# straps 90 wide, wide-deep front scoop so the taniko band reads as a tube.
|
||||
# y+ UP. Lines: 0 shoulder_L | 1-4 scoop (open) | 5 shoulder_R |
|
||||
# 6 armhole_R | 7 side_R | 8 hem | 9 side_L | 10 armhole_L
|
||||
def panel(scoop, dx):
|
||||
top = 350.0
|
||||
band = 350.0 - 105.0 # scoop floor -> band top ~ z 1.30
|
||||
pts = [(65.0, top - 25.0), (155.0, top),
|
||||
(205.0, top - scoop * 0.75), (275.0, top - scoop),
|
||||
(345.0, top - scoop * 0.75), (395.0, top), (485.0, top - 25.0),
|
||||
(550.0, 185.0), (550.0, 0.0), (0.0, 0.0), (0.0, 185.0)]
|
||||
return pattern_api.CreatePatternWithPoints([(x + dx, y, 0) for (x, y) in pts])
|
||||
|
||||
|
||||
pf = panel(105.0, 0.0) # front scoop floor = band top
|
||||
pb = panel(45.0, 800.0) # shallower back
|
||||
report["ids"] = [pf, pb]
|
||||
|
||||
for line in (0, 5, 7, 9):
|
||||
pattern_api.AddSeamlinePairGroup(pf, line, pb, line, False, False)
|
||||
|
||||
fab = fabric_api.AddFabric(ZFAB)
|
||||
fabric_api.SetBaseTextureMapImageGivenFilePath(TEX, fab)
|
||||
for p in (pf, pb):
|
||||
pattern_api.SetPatternPieceFabricIndex(p, fab)
|
||||
|
||||
arr = {a["ArrangementName"]: int(a["ArrangementIndex"])
|
||||
for a in pattern_api.GetArrangementList()}
|
||||
pattern_api.SetArrangement(pf, arr["Body_Front_Center_1"])
|
||||
pattern_api.SetArrangement(pb, arr["Body_Back_Center_1"])
|
||||
pattern_api.SetArrangementPosition(pf, 50, 55, 50)
|
||||
pattern_api.SetArrangementPosition(pb, 0, 55, 50)
|
||||
|
||||
utility_api.ResetClothArrangement()
|
||||
report["sim1"] = utility_api.Simulate(300)
|
||||
utility_api.Refresh3DWindow()
|
||||
|
||||
snap = os.path.join(tempfile.gettempdir(), "tinqs_md_pari_v2.png")
|
||||
export_api.ExportSnapshot3D(snap)
|
||||
report["snap"] = snap
|
||||
result = report
|
||||
Reference in New Issue
Block a user