Files
blender-portable-repo/extensions/user_default/amzncharactertools/ops/hh_set_targets.py
T
2026-03-17 15:16:34 -06:00

22 lines
502 B
Python

import bpy
def selected_hair_meshes():
return [o for o in (bpy.context.selected_objects or []) if o.type == 'MESH']
def run():
hair = selected_hair_meshes()
if not hair:
print("Error: Select hair mesh object(s) to store as HardHat targets")
return
names = [o.name for o in hair]
# Store as semicolon-separated string for simplicity
bpy.context.scene['HH_HairTargets'] = ';'.join(names)
print(f"Stored HH hair targets: {len(names)} -> {names}")
run()