Blender 2.59

Edit: Paulius from Unity just updated the official Blender 2.5 thread with the version of the .py script that currently works with Unity 3.4, will be shipped with Unity 3.5 and works with Blender 2.49, Blender 2.58 and Blender 2.59, so I suggest you get that one :slight_smile:


Old post below:

Attached is a new Unity-BlenderToFBX.py file that works with the almost released Blender 2.59. It’s a modified version of NSdesignGames’s version from this thread.

Backup and replace the original file in your “…/Unity/Editor/Data/Tools” directory and it should work.

You can get a recent windows build of Blender 2.59 with some nice addons from graphicall.org.

Edit: Or the now available official builds from blender.org.

658665–23540–$Unity-BlenderToFBX.zip (827 Bytes)

Does this mean we get easy animation support from Blender?

What’s easy animation support?

Means it can export animation to Unity via FBX. I read on the forum that some people are having problem exporting their animation on fbx files. But thanks for the scripts. :smile:

Well I had no problems testing, but I only tried direct .blend import and default fbx export with all actions included. Both worked.

Really? Did it save the animations separately or as one animation that you had to separate out manually?

I haven’t tried since Blender 2.55.

Unity splits the actions/animations by itself and creates a nice list of animation clips on the root object, just as it should be. Works both with .fbx and direct .blend import.
The only problem I encountered was some weird Blender crashing on direct .blend import to Unity. It was related to old settings I merged from 2.57. I had to reset Blender 2.59 to factory defaults and redo my settings manually.

proof attached :stuck_out_tongue:

Wow thanks!

Now I must try!

woodn, thank you very much! I hope Blender’s api for the fbx export is going to be stable soon, such that it is not anymore necessary to provide those scripts. But until then it’s very useful. Thanks!

Just a note, Blender 2.59 is officially released, so you can grab it here:

Release Log:
http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/changelog_259

@woodn - Does this script break 2.49 support?

@bigkahuna: I don’t think it’ll break 2.49 support, but I haven’t tested it, sorry. (there are some lines in the script specific to 2.49)

Woodn: Thanks for sharing. Works a treat.

May I pry and ask why you are suggesting D/L’ing from graphicall.org? I usually D/L direct from blender.org.

@Little Angel: The offical blender builds weren’t yet available at the time, but now they are and I updated the original post. Still, the builds from graphicall.org often are further developed and include bugfixes and useful stuff earlier than the offical builds. Stuff like the uv-helpers or color palettes for vertex/weight painting or planet textures and other things that are not quite ready yet but still usable.

Thank you for this, it works perfectly!

This works! Thanks! :slight_smile:

what is this? i mean blender already supports fbx just fine :wink:

@saymoo It’s a script for Unity to directly import .blend files located in your assets folder. It communicates with your Blender 2.59 installation in the background, exports the needed fbx automatically and stores them in Unity without cluttering your assets folder. It’s amazingly convenient. But this script had to be updated quite a few times the last months because Blender had gone through a lot of Python API changes. This one works with the latest version of Blender 2.59. It is now obsolete, because Paulius from Unity released the official version of the script in this thread.

tried with 2.59 Unity3.3 64bit so people who still have 3.3 should upgrade. the weird thing here is that, unity 3.3 supported 2.58 fine until recently. what could cause this? A System update?

Both scripts (from this thread and Paulius’es) doesn’t work properly. Some random objects looks okay in scene view, but disapears (or won’t rotate) in game view.
Mac, Unity 3.4f05, Blender 2.59 64bit

edit: actually looks okay in “raw” game view, but resets to identity just after Play pressed.