Bone dividing

Bone dividing

Anonymous
Not applicable
956 Views
5 Replies
Message 1 of 6

Bone dividing

Anonymous
Not applicable
Is there a way to divide a selected bone into 3?

or

Create 3 bones between to point helpers?
0 Likes
957 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
Ill post and example scene.
0 Likes
Message 3 of 6

paulneale
Advisor
Advisor
It is just a matter of finding the start and end position of each bone.

B1pos = P0.pos
B2pos = (P1.pos - P0.pos) * 0.33 + P0.pos
B3pos = (P1.pos - P0.pos) * 0.66 + P0.pos
B4pos = P1.pos


Those are you four position vectors. Then all you need to decide is which way the Z will point and supply the vector for that.
Paul Neale

http://paulneale.com


Paul Neale




EESignature

0 Likes
Message 4 of 6

Anonymous
Not applicable
Alright great, Thanks Paul.

So now I've got this

startPos = selection.pos
endPos = selection.pos
BoneSys.createBone startPos ((startPos - endPos) * 0.666 + endPos) wirecolor:blue --Start
BoneSys.createBone ((startPos - endPos) * 0.666 + endPos) ((startPos - endPos) * 0.333 + endPos) --Middle
BoneSys.createBone ((startPos - endPos) * 0.333 + endPos) endPos --End



Now why do the bones not connect into a hierarchy when they are created automatically?
0 Likes
Message 5 of 6

paulneale
Advisor
Advisor
Just set the .parent property for each bone as needed.
Paul Neale

http://paulneale.com


Paul Neale




EESignature

0 Likes
Message 6 of 6

Anonymous
Not applicable
That is what i ended up doing. I was not sure if you create bones in sequencual order if max automatically would link them up.

Thanks for your help.
0 Likes