Giter Site home page Giter Site logo

godot-blender's Introduction

godot-blender-importer

This now a built-in feature of Godot Engine 4.0.

Blender Importer Addon for Godot

This addon for Godot will automatically import any .blend file in your project directory.

Changes to the file will be automatically picked up, and your scene updated.

editor_screenshot_2021-11-09T003304-0800

"Witchy #StylizedBustChallenge !" by Tyler Soo is licensed under Creative Commons Attribution.

How to Use:

TL,DR:

  • Add this addon to your Godot addons directory, activate it, and make sure the Blender path is correct in project settings.
  • Now Blender files in the project directory magically auto-import and auto-update

Longer Version:

You will need Godot 3.4 and Blender 2.93.5

Beware: Godot Engine through Steam has sandboxing issues. Try official versions on itch.io or Github.

  1. Open this project in Godot Engine 3.4. (or add the addons directory to your project)
  2. May not be needed: Go to Project Settings > Plugins and make sure the plugin Blend is activated.
  3. May not be needed: Go to Project Settings > General > Filesystem > Import > Blender (or just search for blender at the top) and make sure the path to Blender is set. If Blender is in your global path (for example, if you use scoop to install Blender, or you are on Linux/Mac), you can just leave the default blender.
  4. Open Blender, and save Blend files to the project folder. Create one directory per file (materials will be extracted, and might conflict with other materials if you have more than one file).
  5. Switch to Godot, and see the Blender file getting auto-imported
  6. From the imported file, you can now create an inherited scene (double click the file and Godot will propose to create an inherited scene for you).

If you change your Blender file, remember to close your inherited scene in Godot (without saving it), or else you won't be able to see the changes.

Known Bugs

  • It seems the editor can sometimes hang on exit if scenes are left open and unsaved
  • If a scene is open, and the blend file is updated in blender, changes will not be reflected until the scene is reopened (known Godot limitation)

See also

godot-blender's People

Contributors

fire avatar lyuma avatar rcorre avatar xananax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

godot-blender's Issues

Error while loading '*.blend'.

Basically as the title says. Whenever I try to create a new inherited scene it gives me this error. I grabbed logs that I think is relevant.

Thanks!

 Cannot open file 'res://.import/Player.blend-5b7cbcd268029d5a74c4a5701a4730d9.scn'.
 Cannot open file 'res://.import/Player.blend-5b7cbcd268029d5a74c4a5701a4730d9.scn'.
 modules/gdscript/gdscript_functions.cpp:774 - Blender import failed with code=127.
Command: /home/paul/Godot/3D RPG/models/player/Player.blend --background --python-expr import bpy; bpy.ops.export_scene.gltf(filepath='/home/paul/Godot/3D RPG/.import/Player.blend-5b7cbcd268029d5a74c4a5701a4730d9.glb',export_format='GLB',export_colors=True,export_all_influences=False,export_extras=True,export_cameras=True,export_lights=True,export_apply=(len(bpy.data.shape_keys)==0))
Output: sh: line 1: : command not found

Screenshot from 2022-02-20 23-39-09

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.