INNER CODE UNIT · Python
Pico3dExport
bernhardstrobl/Pico3D · Blender/pico3d_blender_exporter.py:60
class Pico3dExport(bpy.types.Operator):
"""Exports Meshes to .h file""" # Use this as a tooltip for menu items and buttons.
bl_idname = "object.export_pico3d" # Unique identifier for buttons and menu items to reference.
bl_label = "Export to Pico3D" # Display name in the interface.
#bl_options = {'REGISTER', 'UNDO'} # Enable undo for the operator.
textures = []
texture_list = ''
texture_data = ''
def execute(self, context): # execute() is called when running the operator.
# The original script
scene = context.scene
export_single = context.scene.export_single_model