Skip to content

Commit

Permalink
no more applescript
Browse files Browse the repository at this point in the history
  • Loading branch information
nat-a-cyborg committed Jan 3, 2024
1 parent e4b68cf commit c09ece0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,25 @@ As my first CadQuery project, I welcome any input or feedback. Please feel free

### BUILD

`docker build -t cadquery:fractal .`
```
docker build -t octahedroflake .
```

```
docker build -t octahedroflake https://github.com/nat-a-cyborg/octahedroflake.git
```

### PULL

```
docker pull natacyborg/octahedroflake
```

### RUN

`docker run -v $(pwd)/output:/home/output -it cadquery:fractal`
```
docker run -v $(pwd)/output:/home/output -it octahedroflake
```

## License

Expand Down
9 changes: 0 additions & 9 deletions octahedroflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
import math
import argparse
import platform
import applescript

import cadquery as cq
from cadquery import exporters
Expand Down Expand Up @@ -128,14 +127,6 @@ def cache_model(part, part_name, order=None):
part_cash[coded_part_name] = part
report(f" 📥 {part_name}", order=order)

def save_comments(file_path, note):
if platform.system() == "Darwin": # Checks if the OS is macOS
note += f"\nNOZZLE_DIAMETER: {NOZZLE_DIAMETER}"
note += f"\nLAYER_HEIGHT: {LAYER_HEIGHT}"
note += f"\nFINAL_ORDER: {FINAL_ORDER}"
note += f"\nSIZE_MULTIPLER: {SIZE_MULTIPLER}"
applescript.tell.app("Finder", f'set comment of (POSIX file "{file_path}" as alias) to "{note}" as Unicode text')

def output(result, *, name, path, stl=False, step=False, svg=False):
file_path = path

Expand Down

0 comments on commit c09ece0

Please sign in to comment.