Pose export script for Blender 2.80

Post about creating and skinning models here
jlv
Site Admin
Posts: 13465
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Pose export script for Blender 2.80

Postby jlv » Tue Oct 29, 2019 3:04 am

This script will export a sequence of poses as a Javascript object for use in scripts.

https://mxsimulator.com/scripts/json_pose_export.py

1. Download via Right click, Save link as.
2. In Blender, open Edit / Preferences.
3. Go to Addons and click "Install...".
4. Find "json_pose_export.py" and click "Install Add-on from File...".
5. Find "Import-Export: Export Pose as JSON" in the list and check it to enable the add on.

Here's a complete example with track and blend file included. To export the poses, use "export JSON pose" in Blender's export menu and then copy the resulting file into the frills.js file after the "Begin pose exported from flagger.blend" comment.

flaggertest.zip
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.

User avatar
Jeremy150
Posts: 1809
Joined: Mon Jul 30, 2012 9:56 am
Team: MV Films

Re: Pose export script for Blender 2.80

Postby Jeremy150 » Tue Oct 29, 2019 5:24 am

Any limit/goal you have in mind for bone count, and animation length?
Image

jlv
Site Admin
Posts: 13465
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Pose export script for Blender 2.80

Postby jlv » Wed Oct 30, 2019 1:53 am

No limit for the length. The bone count limit is set to 32, but there's currently a bug with more than 16 which could crash the game. I forgot to update a buffer for the larger size. It'll be fixed in the next snapshot.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.

User avatar
Smidly
Posts: 236
Joined: Wed May 30, 2018 2:56 am
Team: WildSide Designs
Contact:

Re: Pose export script for Blender 2.80

Postby Smidly » Sun Nov 03, 2019 3:30 am

Thanks dawg this should make things much easier
Image

User avatar
Motospun
Posts: 11
Joined: Thu Aug 23, 2018 6:44 pm
Team: Privateer
Location: Canaville

Re: Pose export script for Blender 2.80

Postby Motospun » Sun Nov 03, 2019 4:09 am

koob


Return to “Model and Skin Editing”

Who is online

Users browsing this forum: No registered users and 9 guests