Giter Club home page Giter Club logo

Comments (5)

set-killer avatar set-killer commented on June 7, 2024

Just try to read the code from the bottom to top. The file is not that big, especially when you exclude the commented lines.

from godot-blender-exporter.

kone9 avatar kone9 commented on June 7, 2024

Ya se que se lee de arriba hacia abajo,pero no entiendo como es el diseño del programa,ni como se relaciona cada función con la api de blender3D.gracias por la sugerencia.

I know it reads from top to bottom, but I do not understand how the program design is, nor how each function relates to the api of blender3D. Thanks for the suggestion.

from godot-blender-exporter.

set-killer avatar set-killer commented on June 7, 2024

Well, here the structure is somehow inverted. The most important methods are at the bottom of the file.

The Blender's API is exposed trough the bpy module.

from godot-blender-exporter.

sdfgeoff avatar sdfgeoff commented on June 7, 2024

Blender's addon API is quite convoluted. But the major flow in this exporter is:

  • The function "save" in export_godot.py
  • It then iterates through each object in the scene in "export" function of the GodotExporter class
  • Inside export_node() it figures out what function handles each type of blender object

From there it devolves into lots of long functions for handling meshes etc, currently with lots of commented out code (in the form of multi-line strings).

But in the end, everything ends up getting dumped into GodotExport.writel() which "stores" the file until the actual write is performed. (This is done because the escn format has three main sections, and you need to wait until you can write the first section before you can start writing the second).

Hopefully this gives you a bit of an idea of how the exporter works.

from godot-blender-exporter.

kone9 avatar kone9 commented on June 7, 2024

ok,thanks

from godot-blender-exporter.

Related Issues (20)

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.