Blender to ActionScript exporter updated: export multiple objects at once

Posted by on Jun 12, 2009 in 3D, ActionScript, Blender15 comments

Until now you could only export the selected object. I’ve added a toggle button that enables you to save all the objects in the scene. I’ve also removed the class name input box. It now uses the name from the object itself.
Doing this, I discovered a bug in the script that affected the x, y and z position of the object which is now fixed.
The layout has changed a bit as well:

Blender exporter new layout

Download the latest version here.

Thanks to Lance for requesting this feature!



Tags: , ,


15 comments

» Comments RSS Feed
  1. I can’t get this Version.4 to work. I keep getting the following error from Blender: “Python script error: check console” (Version.3 seemed to work fine.) Any Suggestions?

  2. Hey Tyson,
    What 3D engine are you exporting to? Are you exporting multiple objects? Exporting with modifiers?
    Dennis

  3. Hi Dennis,

    Great tool, much better than trying the collada exporter from Blender.

    A quick question really:

    I’ve been trying to apply a MovieMaterial to an object exported using your tool but papervision 2.0 Great White or Flash doesn’t seem to like it.

    Also , I had the same problem as Tyson when trying to start up your new script (the download from June 11th 2009) had exactly the same issue, i.e. Python script error. The object was the Blender Cone primitive which exported fine with Version 3 of your script in Blender 2.4.6.

    Any ideas?

    Thanks

  4. [...] Rozengain or Dennis Ippel of AKQA updated probably one of the tools I use the most for flash 3d and that is the blender to as3 exporter.  This simplifies loading in the meshes you have and lessens the bulk of the COLLADA format.  COLLADA is great but flash is still client side and fairly memory intensive for 3d so loading in models directly to as3 is nice if flash is your presentation tool. [...]

  5. @Rich,

    I’m not aware of any problems with MovieMaterial. Do you get an error message?
    Can you send me the source files?

    As regards to the Python script error: I’ll have another look into it. I tried it myself but didn’t get an error message. Could you maybe post the error message?

    Thanks,
    Dennis

  6. I see the same error msg Tyson mentioned. However, I get another error before: Error. Active Object is not a mesh.
    Which seems odd since the active object is an imported .wrl file with a molecule model which renders just fine in blender. The error occurs only if I select all of the molecule, if instead I select only a single atom (==sphere) there is no error and the export works just fine. (mail me if you’d like the .wrl to repro)

  7. @Daniel: thanks for mentioning this error. I’ve fixed it and updated the version on the server. The problem was that it tried to export the first selected object. So if this was a camera and not a mesh it threw this particular error.
    I’ve changed this so that all selected (mesh) objects are exported. It ignores non-mesh objects completely.
    Does this solve the other error as well?

  8. Hi Dennis, I’ve tried your exporter from Blender to AS3 and I’ve found it very useful!

    I’m now wondering if it is possible to export one only object that encapsulates many others. As an example, I’d like to create four walls, a ceiling and the floor for an object “Room.as” encapsulating them all. Maybe I don’t use the correct Blender’s features?

    Thank you!

  9. Hi again Dennis!

    I would also like to know if you plan to improve the exporter adding other info inside the .as files such as textures applied, filters and so on…

    Please let me now about it… I’m having a great time using the exporter!

    Bye!

  10. I get this error: “Python script error: check console”

    How do I fix this?

    I have Python 2.5, Blender 2.49, and I am using a Mac

  11. This looks like a much better alternative, but I’ve got some problems with it. Is it possible to add an eventlistener to the object being imported? (I know it kinda hard adding an eventlistener to a collada file).

    The second problem I ran into is that it does not seem to be able to compile properly in flex. I just get a black screen with no model. Is there something I could be missing when developing in flex (I don’t mean working with mxml, just in the actionscript project mode). But hey, at least it works in flash.

  12. Blender Actionscript importer is producing wrong import directives for the latest Away3D release. Please check. I was to use imported class only after renaming manually commands.

    Thanks,
    Dmitry.

  13. You are a genius – keep up the great work!

  14. Any plans to upgrade the script for Blender 2.5x. I tried it in Blender 2.55 and but it doesn’t show up in the preferences/addon dialog. I modified the script to show their but it won’t enable. I’m sure other changes will be needed also.

  15. Hi Ron, there are plans. I just need some time to do it :-)

Leave a comment