본문으로 건너뛰기
Skillpedia
기타25k · #10072

gcode

하는 일

이 스킬은 OrcaSlicer로 3D 모델 파일을 출력 지침으로 바꿉니다. 3D 프린터로 모델을 출력할 준비를 하려는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓3D 프린터용으로 STL이나 3MF 모델을 슬라이스하고 싶을 때.
  • ✓출력을 위해 슬라이스된 .gcode.3mf 또는 일반 .gcode 파일이 필요할 때.
  • ✓직접 슬라이스하려고 OrcaSlicer에서 모델을 열고 싶을 때.

스킬 링크

https://github.com/earthtojake/text-to-cad/blob/main/skills/gcode/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/earthtojake/text-to-cad/blob/main/skills/gcode/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“OrcaSlicer로 이 STL을 제 Prusa MK4용으로 슬라이스해서 G-code 파일을 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

AI는 OrcaSlicer의 프리셋을 사용하며, 사용자가 이미 출력에 쓰는 프리셋을 우선합니다. 그다음 슬라이서를 실행합니다. 파일을 프린터로 보내지는 않습니다. Bambu Lab 프린터의 경우 결과물은 Bambu Connect를 거칩니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

G-code

Slice with OrcaSlicer, headless (below) or by opening the model in the OrcaSlicer app for the user. The agent never contacts a printer: for a Bambu Lab printer, the result is sent through Bambu Connect; for any other printer, give the user the .gcode.

Install OrcaSlicer

  • macOS: brew install --cask orcaslicer. The command line is /Applications/OrcaSlicer.app/Contents/MacOS/OrcaSlicer.
  • Windows and Linux: install a release from https://github.com/OrcaSlicer/OrcaSlicer/releases. The command is orca-slicer; on Linux, run it from the AppImage or Flatpak.

Below, <orca> is that command.

Slice headless

OrcaSlicer's command line (https://www.orcaslicer.com/wiki/cli/cli_mode) needs complete presets: it doesn't fill in a preset's parent settings, and it slices only with a process whose compatible printers name the printer. scripts/orca_presets.py (Python 3, no dependencies) writes them from OrcaSlicer's presets, searching the user's own first, then OrcaSlicer's built-in profiles.

  1. Find the user's printer, process and filament presets. Prefer the presets the user prints with; never invent one, since a wrong bed size or temperature can damage the printer.

    python scripts/orca_presets.py --list machine --match "MK4S"
    python scripts/orca_presets.py --list process --match "@MK4S 0.4"
    python scripts/orca_presets.py --list filament --match "PLA @MK4S"
    
  2. Write the complete presets:

    python scripts/orca_presets.py --printer "Prusa MK4S 0.4 nozzle" \
      --process "0.20mm SPEED @MK4S 0.4" --filament "Prusa Generic PLA @MK4S" \
      --out presets
    
  3. Slice. Give --outputdir an absolute path:

    <orca> model.stl \
      --load-settings "presets/process.json;presets/printer.json" \
      --load-filaments presets/filament-1.json \
      --arrange 1 --slice 0 \
      --outputdir /absolute/path/to/out --export-3mf model.gcode.3mf
    

    This writes plate_1.gcode, the plain G-code, and model.gcode.3mf, the sliced 3MF, into that folder. The command line reads .stl, .3mf, .obj and .amf; export STEP to STL or 3MF first (for a text-to-cad model, cad export <id> part.3mf, or cad export part.step part.3mf). Override one setting with --<setting>=<value>, using the setting's key with hyphens for underscores, such as --layer-height=0.16.

Open in OrcaSlicer

When the user would rather pick presets and slice themselves, or no preset can be found, open the model in the app: open -a OrcaSlicer model.stl on macOS, Start-Process model.stl on Windows when OrcaSlicer opens that file type, or orca-slicer model.stl on Linux. The app also reads STEP.

Check before printing

  • <orca> model.stl --info prints the model's size; it has to fit the bed.

  • Check the slice's settings, which OrcaSlicer writes at the end of the G-code:

    grep -E '^; (printer_model|nozzle_diameter|filament_type|nozzle_temperature|hot_plate_temp|bed_temperature) =|printing time' out/plate_1.gcode
    

    Confirm they match the user's printer and material before anyone prints it.

Hand off

  • A Bambu Lab printer: Bambu Connect, with the .gcode.3mf.
  • Any other printer: the user prints the .gcode from their printer's app, its web interface (PrusaLink, OctoPrint, Mainsail, Fluidd) or an SD card.
자주 묻는 질문

프린터로 출력을 보내나요?

아니요. Bambu Lab이 아닌 프린터에서는 사용자가 직접 쓸 G-code 파일을 받습니다.

어떤 프린터를 지원하나요?

OrcaSlicer에 기본 프로필이 있는 대부분의 FDM 프린터를 지원합니다.

프린터 설정을 임의로 만드나요?

아니요. 잘못된 값은 프린터를 손상시킬 수 있으므로, 스킬은 설정을 지어내지 않습니다.

상세 정보

작성자의 원본 설명

Slice 3D models into printer-ready G-code with OrcaSlicer, the open-source slicer with built-in profiles for most FDM printers (Prusa, Bambu Lab, Creality, Voron and more). Use when the user wants an `.stl`, `.3mf` or `.obj` model sliced for their printer, as a sliced `.gcode.3mf` or plain `.gcode`, headless with OrcaSlicer's command line or by opening the model in OrcaSlicer. Never contacts a printer.

repo: earthtojake/text-to-cad

인기도

GitHub 스타
25k
순위
#10072
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬