Skip to content

Commit

Permalink
Final changes to ConfigCommand.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonPacewic committed Aug 22, 2024
1 parent 0e2edbd commit db954a4
Show file tree
Hide file tree
Showing 8 changed files with 111 additions and 242 deletions.
4 changes: 2 additions & 2 deletions exporter/SynthesisFusionAddin/src/Parser/ExporterOptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions exporter/SynthesisFusionAddin/src/Resources/HTML/info.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<script>
window.location.replace("https://synthesis.autodesk.com/tutorials.html")
window.location.replace("https://synthesis.autodesk.com/codelab/FusionExporterCodelab/index.html#0")
</script>
<style>
.redirecting {
Expand All @@ -18,4 +18,4 @@
<h1>Redirecting...</h1>
</div>
</body>
</html>
</html>
2 changes: 2 additions & 0 deletions exporter/SynthesisFusionAddin/src/Types.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ class ModelHierarchy(Enum):
KG: TypeAlias = float
LBS: TypeAlias = float
PRIMITIVES = (bool, str, int, float, type(None))

# All currently supported Fusion joints
SELECTABLE_JOINT_TYPES = (adsk.fusion.JointTypes.RevoluteJointType, adsk.fusion.JointTypes.SliderJointType)


Expand Down
2 changes: 1 addition & 1 deletion exporter/SynthesisFusionAddin/src/UI/Camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


@logFailure
def captureThumbnail(size: int = 250) -> str:
def captureThumbnail(size: int = 250) -> str | os.PathLike[str]:
"""
## Captures Thumbnail and saves it to a temporary path - needs to be cleared after or on startup
- Size: int (Default: 200) : (width & height)
Expand Down
Loading

0 comments on commit db954a4

Please sign in to comment.