OGRECave / blender2ogre

Blender exporter for the OGRE 3D engine
GNU Lesser General Public License v2.1
199 stars 69 forks source link

Show Blenders python script code for export options #196

Closed sercero closed 3 months ago

sercero commented 3 months ago

When the export script runs, now it shows code to replicate the exporting process using Blenders python scripting

Example:

# Blender Script:
import bpy
bpy.ops.ogre.export(
  filepath="/home/guillermo/Development/Game/Blender/Export/blender2ogre.scene", 
  EX_LOD_LEVELS=3, 
  EX_TRIM_BONE_WEIGHTS=0.009999999776482582, 
)

Some rough edges remain:

So, some things have to be corrected by the user.