In 13.5, copy the keyframes to a Regular Action and then click the Export button in the Actions window.
Now, you can apply the Action to the bones in 14.1 after importing it by using the Import button in the Actions window.
I don't have time to try this right now but I'm pretty sure it will work. Let me know what happens if you get a chance to try it yourself.
Re: MR Bake Bone Dynamics
Posted: Tue Apr 02, 2024 6:38 pm
by Daxel
Greenlaw wrote: ↑Tue Apr 02, 2024 4:35 pm
I don't have time to try this right now but I'm pretty sure it will work. Let me know what happens if you get a chance to try it yourself.
It worked!
A few things to note:
I had to remake the bone physics settings of each dynamic bone not only because the numbers were different, but because the same numbers also didn't produce the same results at all.
The exported action, containing just 20 keyframes for one single bone weights 60+ MB! That doesn't sound reasonable at all, but it works. I just hope nothing explodes when I try to export the total 1242 keyframes of the 10-20 dynamic bones I have. I just made a quick test, and with that insane increase in frames and bones the action's weight goes all the way up to 61MB! Good news I guess! And import worked fine aswell.
Thanks for your help!
And sorry Eugene if these posts are a little bit off topic... I guess it could be helpful for another user that comes here after trying this script in Moho14.
Also, if Victor or Mike are reading, please consider baking physics as a built in option.
Re: MR Bake Bone Dynamics
Posted: Tue Apr 02, 2024 9:07 pm
by Greenlaw
Oh, yeah...I guess that makes sense. Eugene did say LM made changes to how dynamics works, and that's probably what you ran into.
Anyway, thanks for the report! Glad you got something that works now.
Re: MR Bake Bone Dynamics
Posted: Mon Jun 03, 2024 3:51 pm
by KuzKuz
The problem with baking bones in version 14 is that bone dynamics do not update when changing frames via the API.
There is one solution, but it might not be very convenient. I can make it so that the user manually changes frames and presses a button to record the bone transformations.
The script can then reproduce these transformations in the frames where the user collected the data. It might be better than nothing.
Let me know if this option works for you and if it's worth writing the script.
Re: MR Bake Bone Dynamics
Posted: Mon Jun 03, 2024 4:04 pm
by Greenlaw
Oh, shoot...I totally forgot about this. Thanks for the reminder.
Re: MR Bake Bone Dynamics
Posted: Mon Jun 03, 2024 4:39 pm
by Daxel
KuzKuz wrote: ↑Mon Jun 03, 2024 3:51 pm
The problem with baking bones in version 14 is that bone dynamics do not update when changing frames via the API.
There is one solution, but it might not be very convenient. I can make it so that the user manually changes frames and presses a button to record the bone transformations.
The script can then reproduce these transformations in the frames where the user collected the data. It might be better than nothing.
Let me know if this option works for you and if it's worth writing the script.
I would definitely use it. We would have to press the next frame button and then the record button for each frame, right? It would be nice if the record button had the "next frame" action included so it's only one button per frame but I don't know if that is possible.
Re: MR Bake Bone Dynamics
Posted: Mon Jun 03, 2024 4:51 pm
by KuzKuz
Daxel wrote: ↑Mon Jun 03, 2024 4:39 pm
We would have to press the next frame button and then the record button for each frame, right?
Yes. But this can only work if the user manually changes the frame by pressing the right arrow key on the keyboard.
Unfortunately, this doesn't work if the script changes the frame instead of the user.