骨名一覧

2.49b

Armatureの骨名確認スクリプト

使い方
1. blenderテキストエディタにコピペ
2. object modeで一覧したいArmatureを選択
3. テキストエディタ - text - run python script
Dosプロンプトに結果表示。Dosプロンプトの左上のアイコンをクリックする。メニューからプロパティを選択。編集モード - 簡易編集オプションをオンにすることで左マウスドラッグで範囲を指定して右クリックでクリップボードに送れるようになる。

print("#### start script ####")

import Blender

def dumpBoneTree(bone, indent=""):
	print "%s%s" % (indent, bone.name)
	for b in bone.children:
		dumpBoneTree(b, indent+"  ")
	
def dumpBone(armature):
  for b in armature.bones.values():
		if not b.parent:
			dumpBoneTree(b)

scene=Blender.Scene.GetCurrent()

o=scene.objects.active
if o.getType()=="Armature":
	dumpBone(o.getData())
	
print("#### end script ####")