我有一个骨骼名称(例如Bone002
),我想获取它的骨骼 ID(不是皮肤列表中的索引,而是所需的 ID,例如skinOps.SetVertexWeights
)。
我知道反向操作是这样的:
skinMod = $.modifiers[#skin]
boneListIndex = (skinOps.GetVertexWeightBoneID skinMod v w)
local boneName = skinOps.GetBoneNameByListID skinMod boneListIndex 0
但如何获得boneID
?我已经有了boneListIndex
和boneName
。
我假设所有骨骼都有唯一的名称。