Skip to content

Match filament presets by filament_id from Moonraker lane_data#1

Open
broncosis wants to merge 1 commit into
mainfrom
feat/lane-data-filament-id-matching
Open

Match filament presets by filament_id from Moonraker lane_data#1
broncosis wants to merge 1 commit into
mainfrom
feat/lane-data-filament-id-matching

Conversation

@broncosis

Copy link
Copy Markdown
Owner

When OrcaSlicer reads lane_data from Moonraker, it now checks the filament_id field first (populated by spoolman-lane-sync, ACE Pro, etc.) and attempts to match a preset by filament_id or preset name. Falls back to the existing material-type matching if no preset is found.

  • Add PresetCollection::filament_id_by_id_or_name() to Preset.cpp/hpp
  • Use it in MoonrakerPrinterAgent::fetch_moonraker_filament_data()

Description

Screenshots/Recordings/Graphs

Tests

How to Download Pull Requests Artifacts for Testing

…data

When OrcaSlicer reads lane_data from Moonraker, it now checks filament_id
and setting_id fields first (populated by spoolman-lane-sync, ACE Pro, etc.)
and attempts to match a filament preset before falling back to the existing
material-type matching.

- Add PresetCollection::filament_id_by_id_or_name() which tries matching by
  filament_id, setting_id, preset name (exact then case-insensitive/base-name)
- Use it in MoonrakerPrinterAgent::fetch_moonraker_filament_data() for both
  filament_id and setting_id fields from lane_data
- Add name-based fallback in PresetBundle::sync_ams_list() and
  get_ams_cobox_infos() for user presets that have no filament_id
@broncosis
broncosis force-pushed the feat/lane-data-filament-id-matching branch from d63eee4 to 8d574ce Compare June 26, 2026 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant