3ba86b2ea8
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>
29 lines
849 B
Python
29 lines
849 B
Python
import bpy
|
|
import bmesh
|
|
|
|
bpy.ops.wm.open_mainfile(filepath="characters/female/lena_nude/hires_work/01_imported.blend")
|
|
obj = bpy.context.selected_objects[0]
|
|
print(f"Working on {obj.name}")
|
|
|
|
mesh = obj.data
|
|
bpy.context.view_layer.objects.active = obj
|
|
bpy.ops.object.mode_set(mode="EDIT")
|
|
bpy.ops.mesh.select_all(action="DESELECT")
|
|
|
|
bm = bmesh.from_edit_mesh(mesh)
|
|
bm.edges.ensure_lookup_table()
|
|
for e in bm.edges:
|
|
if e.is_boundary:
|
|
e.select = True
|
|
|
|
print(f"Selected {len([e for e in bm.edges if e.select])} boundary edges")
|
|
|
|
bpy.ops.mesh.remove_doubles(threshold=0.001)
|
|
|
|
bpy.ops.object.mode_set(mode="OBJECT")
|
|
print("Welding complete.")
|
|
|
|
bpy.context.preferences.filepaths.save_version = 0 # no .blend1 autosave
|
|
bpy.ops.wm.save_as_mainfile(filepath="characters/female/lena_nude/hires_work/02_welded.blend")
|
|
print("Saved 02_welded.blend")
|