INNER CODE UNIT · Python

menu_func_export

untoldengine/UntoldEngine · scripts/untold-blender-addon/untold_exporter/__init__.py:605

def menu_func_export(self: bpy.types.Menu, context: bpy.types.Context) -> None:
    self.layout.operator(UNTOLD_OT_export_asset.bl_idname, text="Untold (.untold)")
    self.layout.operator(UNTOLD_OT_export_animation.bl_idname, text="Untold Animation (.untoldanim)")
    self.layout.operator(UNTOLD_OT_export_tiled_scene.bl_idname, text="Untold Tiled Scene")


classes = (
    UNTOLD_OT_export_asset,
    UNTOLD_OT_export_animation,
    UNTOLD_OT_export_tiled_scene,
)


def register() -> None:
    for cls in classes:
        bpy.utils.register_class(cls)
    bpy.types.TOPBAR_MT_file_export.append(menu_func_export)
    object_metadata.register()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…