How does one get the selected bones? My guy can get selected Layers but he can't figure out how to get the selected bones.
Thx.
Get Selected Bones
Moderators: Víctor Paredes, Belgarath, slowtiger
Get Selected Bones
My opinions and comments do not represent those of my employer.
http://www.ernestpchan.com
http://www.zazzle.com/gopuggo
http://www.ernestpchan.com
http://www.zazzle.com/gopuggo
Re: Get Selected Bones
Tell your code guy that he has to iterate through a bone layer and check each bone for the selected one.
Code: Select all
Layer = moho.layer
for i in Layer:Skeleton:CountBones()-1 do
Bone = Layer:Skeleton:Bone(i)
if Bone.fSelected then
--DO CODE HERE
end
end
Re: Get Selected Bones
Thank you!
My opinions and comments do not represent those of my employer.
http://www.ernestpchan.com
http://www.zazzle.com/gopuggo
http://www.ernestpchan.com
http://www.zazzle.com/gopuggo