2026-01-01
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user