Is it possible to write a script which opens Blender's existing FBX exporter window?

Blender Asked by Milun on November 7, 2020

I’m wondering if there’s a way to programmatically open Blender (2.79)’s FBX exporter UI with Python script.

Basically, what I’m trying to make is a script which, when ran:

  • Modifies all the UVs for each selected mesh.
  • Opens the existing FBX exporter and allows the user to export the modified mesh.
  • Once the user closes the FBX exporter window, for the mesh to revert back to its original state prior to running the script.

I know there’s a way to export FBX in script using bpy.ops.export_scene.fbx, but I was wondering if it was possible to open the UI’s FBX exporter instead.

Thank you so much in advance!

One Answer

Use bpy.ops.export_scene.fbx('INVOKE_DEFAULT').

More info about "Execution Contexts":

I'm not sure what the best way to run something after the operator is complete is though. Maybe try: Running code after a modal operator finished its job

Answered by scurest on November 7, 2020

Add your own answers!

Related Questions

Why doesn’t my boolean difference modifier work?

1  Asked on January 15, 2021 by adfasdfsdfsfd


How to get to material nodes 2.8

1  Asked on January 14, 2021 by gibthom


Bend UVs to follow a non-quad mesh

0  Asked on January 14, 2021 by jan-kadebek


How can I find the camera viewplane size?

1  Asked on January 13, 2021 by tango


How to make a mesh follow certain rules?

1  Asked on January 13, 2021 by aniruddhsinh-jadeja


Mesh Smooth / Remesh on Command Line Interface

0  Asked on January 12, 2021 by gdosu


‘Line’ artifacts in diffuse bake

0  Asked on January 12, 2021 by grumpypudding


Strange problem with mesh/normals/normals direction

3  Asked on January 11, 2021 by stackbuddy


How to make cigar (not cigarette) texture?

1  Asked on January 10, 2021 by polik


EEVEE Baking Time

1  Asked on January 8, 2021


How to have retractable limbs

1  Asked on January 7, 2021 by snuh


Ask a Question

Get help from others!

© 2023 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP