Dieton

read_all_armature_rig_bone_names.py

Aug 15th, 2026 (edited)
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | Gaming | 0 0
  1. import bpy
  2.  
  3. # Find the first armature in the scene
  4. armature = None
  5. for obj in bpy.data.objects:
  6.     if obj.type == 'ARMATURE':
  7.         armature = obj
  8.         break
  9.  
  10. if armature is None:
  11.     print("No armature found in the scene.")
  12. else:
  13.     print("=== Bone Names in Armature:", armature.name, "===")
  14.     for bone in armature.data.bones:
  15.         print(bone.name)
  16.     print("===============================================")
  17.  
Advertisement
Add Comment
Please, Sign In to add comment