Hi
I am new to scripting so I think this is a simple question but I can't get it!
I am trying to parent bones without changing there positions
first idea
I was thinking to store the pos data for the child and the parent bones then substract them to know the difference, and after parenting add the difference value
then i will have to deal with the rotation
I don't feel this should be so complicated
second idea
after some research I found the matrix but I can't understand how does it work?
is it like saving data before parent on LM.Vector2:new_local() and after parenting on another LM.Vector2:new_local()
when to create LM.Vector2:new_local() and when to create LM.Matrix:new_local() ?
Thank you guys
how to parent bones without changing there global pos or rotation
Moderators: Víctor Paredes, Belgarath, slowtiger
- synthsin75
- Posts: 10047
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: how to parent bones without changing there global pos or rotation
Off hand, I'd say look at the reparent bone tool. It should be a good example.
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Re: how to parent bones without changing there global pos or rotation
Thank you this simple answer helped a lot
I kept looking for scripts using similar code forgetting the built-in scripts
I kept looking for scripts using similar code forgetting the built-in scripts