- Home /
Move armature bones in scene Hierarchy
I have imported a rigged character model and I have added the model to the scene. I can see the armature and I asked myself if I can move the bones around to modify the character's pose directly in the scene. I've tried but.. no success.
Is it possible to do that even using scripting? How?
Thanks!
Answer by exvalid · Feb 19, 2018 at 09:13 AM
It is First you have to Find the bone u want to move using Gameobject Object ;
Object = Gameobject Find ("name here") ;
good idea to find the character then locate the bone if u have many items with same bone names.
then u need to use code
Gameobject Bone ;
Bone = Object.transform.find ("bone1/bone2/bone3/bone_I_want").gameobject ;
Then use code to move it
Bone.transform.LocalEularangles = new Vector ( X ,Y , X ) ;
For above Xyz is where you link you mouse or button imputs ok. trying one axis at a time till u find the correct movement u want, its not click and drag but it will get your parts moving via controls if u add controls in that is.
GL sorry if i misstypes some code i wrote it quick check capitals n such.
Your answer
Follow this Question
Related Questions
Bone Not Rotating? 1 Answer
Free Move Bone On Rigged Object 0 Answers
How do i find a bone on my character within a script? 2 Answers
Rotating a bone via scripts 1 Answer