Jump to content

Useful Python Scripts for Blender


LHammonds

Recommended Posts

I have written a few small Python scripts to import/export animation data to/from a text file. Useful if you generate animation data instead of using Blender's cumbersome Transform Properties.

 

Anyone interested?

Link to comment
Share on other sites

The loop tool one looks so handy! Thanks.

 

Yea fore, Im gonna be trying to animate my guy the old fashioned way but u might as well post the script :D

 

Here is a site with some useful blender scripts. I use geom tool and uv tool a lot and theres 2 other ones also.

Geom tool and other scripts

 

I think it is cumbersome to position the constraint pivots. I wonder if there is a script for that or some other way to get the desired position from 3d cursor.

Link to comment
Share on other sites

  On 3/1/2011 at 12:09 PM, baduk said:

Yea fore, Im gonna be trying to animate my guy the old fashioned way but u might as well post the script :D

 

Ehhhm..... but how should I post that? These are 3 scripts with a total o 150 lines. Post as code snippet's here? I don't think it should be a mod file ....

Link to comment
Share on other sites

use the [ code ] tags in conjunction with the [ spoiler ] tags.

 

Example:

 

 

  Reveal hidden contents

 

Link to comment
Share on other sites

Thanks, baduk and LHammonds :thumbsup:

 

Here are my Python scripts (partially based on the Nif Scripts). I use them to import/export and analyze animation key data, mainly for the OP (breast bones). This way I can design and manage the animation data outside of Blender (in a spread sheet).

 

Import animation key data from a text file. Key data is sorted by frames and has the following format:

<frame>,<bone name>,<x-loc>,<y-loc>,<z-loc>,<x-rot>,<y-rot>,<z-rot>

 

 

  Reveal hidden contents

 

 

Export animation key data into a text file.

 

 

  Reveal hidden contents

 

 

Export "worldspace" location data, i.e. location relative to the scene, into a text file. This allows to read the body movement at the place of the bone

 

 

  Reveal hidden contents

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...