From db954a401717606ed04089ef2a106bbbc9af1f00 Mon Sep 17 00:00:00 2001 From: BrandonPacewic <92102436+BrandonPacewic@users.noreply.github.com> Date: Thu, 22 Aug 2024 12:00:01 -0700 Subject: [PATCH] Final changes to `ConfigCommand.py` --- .../src/Parser/ExporterOptions.py | 4 +- .../src/Resources/HTML/info.html | 4 +- exporter/SynthesisFusionAddin/src/Types.py | 2 + .../SynthesisFusionAddin/src/UI/Camera.py | 2 +- .../src/UI/ConfigCommand.py | 290 ++++-------------- .../src/UI/GamepieceConfigTab.py | 2 +- .../SynthesisFusionAddin/src/UI/Handlers.py | 12 + .../src/UI/JointConfigTab.py | 37 ++- 8 files changed, 111 insertions(+), 242 deletions(-) diff --git a/exporter/SynthesisFusionAddin/src/Parser/ExporterOptions.py b/exporter/SynthesisFusionAddin/src/Parser/ExporterOptions.py index 1eb34e9e52..39f6c276b7 100644 --- a/exporter/SynthesisFusionAddin/src/Parser/ExporterOptions.py +++ b/exporter/SynthesisFusionAddin/src/Parser/ExporterOptions.py @@ -32,7 +32,7 @@ class ExporterOptions: # Python's `os` module can return `None` when attempting to find the home directory if the # user's computer has conflicting configs of some sort. This has happened and should be accounted # for accordingly. - fileLocation: str | None = field( + fileLocation: str | os.PathLike[str] | None = field( default=(os.getenv("HOME") if platform.system() == "Windows" else os.path.expanduser("~")) ) name: str | None = field(default=None) @@ -52,7 +52,7 @@ class ExporterOptions: compressOutput: bool = field(default=True) exportAsPart: bool = field(default=False) - exportLocation: ExportLocation = field(default=ExportLocation.UPLOAD) + exportLocation: ExportLocation = field(default=ExportLocation.DOWNLOAD) hierarchy: ModelHierarchy = field(default=ModelHierarchy.FusionAssembly) visualQuality: TriangleMeshQualityOptions = field(default=TriangleMeshQualityOptions.LowQualityTriangleMesh) diff --git a/exporter/SynthesisFusionAddin/src/Resources/HTML/info.html b/exporter/SynthesisFusionAddin/src/Resources/HTML/info.html index a44b45f115..759ed2a48d 100644 --- a/exporter/SynthesisFusionAddin/src/Resources/HTML/info.html +++ b/exporter/SynthesisFusionAddin/src/Resources/HTML/info.html @@ -2,7 +2,7 @@