mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-11 19:17:33 +00:00
profiles: deterministic setting_id from vendor/type/name (#14432)
* profiles: enforce globally-unique, per-vendor-namespaced setting_id Many non-Bambu vendors copied Bambu's generic setting_ids (GFSA04 alone appeared in 1557 files), so setting_id was not globally unique. This namespaces every vendor's ids and reserves Bambu/OrcaFilamentLibrary space. - Reserve "G*" (Bambu) and "O*" (OrcaFilamentLibrary) id spaces. - Assign each other vendor a 2-char prefix (first+last letter, collision resolved) and renumber every instantiated preset to <PREFIX><NNNN>. - Strip setting_id from base profiles (instantiation:false) per Bambu's convention; assign one to instantiated presets that lacked it. - Remove the pre-existing misspelled "settings_id" key (91 files). - filament_id is left untouched (it is a per-material id). - Add one-time migration script scripts/assign_vendor_setting_ids.py with a persisted registry resources/profiles/vendor_prefixes.json. Re-runs freeze existing ids; only new vendors/profiles get new ids. - Bump version in each changed vendor index file. - Extend scripts/orca_extra_profile_check.py with a CI guard: global uniqueness, in-namespace, no base setting_id, no gaps, no settings_id typo. 7425 profile files changed across 61 vendors; 0 cross-vendor collisions; validator clean; migration idempotent. BBL and OrcaFilamentLibrary id spaces untouched. * profiles: add setting_id authoring guide for new vendors / profiles * profiles: drop in-repo README; setting_id guide now lives in the wiki * profiles: derive setting_id deterministically from vendor/type/name * bump profile version
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "filament",
|
||||
"filament_id": "GFN99",
|
||||
"setting_id": "GFSN98",
|
||||
"setting_id": "wuZ0EvlbcJ8GxajY",
|
||||
"name": "PA6 CF20 (Performance)",
|
||||
"from": "system",
|
||||
"instantiation": "true",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "filament",
|
||||
"filament_id": "GFG99",
|
||||
"setting_id": "GFSG99",
|
||||
"setting_id": "May8rNEMOOs1qtae",
|
||||
"name": "PETG ESD (Performance)",
|
||||
"from": "system",
|
||||
"instantiation": "true",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "filament",
|
||||
"filament_id": "GFN99",
|
||||
"setting_id": "GFSN98",
|
||||
"setting_id": "HE0yILdkhbiXbH1j",
|
||||
"name": "PPS Carbone (Performance)",
|
||||
"from": "system",
|
||||
"instantiation": "true",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "filament",
|
||||
"filament_id": "GFB99",
|
||||
"setting_id": "GFSA04",
|
||||
"setting_id": "466ggy6ydgaZOrSx",
|
||||
"name": "Volumic ABS Ultra (Performance)",
|
||||
"from": "system",
|
||||
"instantiation": "true",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "filament",
|
||||
"filament_id": "GFB99",
|
||||
"setting_id": "GFSA04",
|
||||
"setting_id": "omHiTINFPThooUqk",
|
||||
"name": "Volumic ABS Ultra",
|
||||
"from": "system",
|
||||
"instantiation": "true",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "filament",
|
||||
"filament_id": "GFB99",
|
||||
"setting_id": "GFSA04",
|
||||
"setting_id": "uE5jxeOBISvO5o7L",
|
||||
"name": "Volumic ASA Ultra (Performance)",
|
||||
"from": "system",
|
||||
"instantiation": "true",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "filament",
|
||||
"filament_id": "GFB99",
|
||||
"setting_id": "GFSA04",
|
||||
"setting_id": "LOAp2zgQWqg1lQQ4",
|
||||
"name": "Volumic ASA Ultra",
|
||||
"from": "system",
|
||||
"instantiation": "true",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "filament",
|
||||
"filament_id": "GFU99",
|
||||
"setting_id": "GFSR99",
|
||||
"setting_id": "k5V3bjZrtr7t8zl0",
|
||||
"name": "Volumic FLEX93 Ultra (Performance)",
|
||||
"from": "system",
|
||||
"instantiation": "true",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "filament",
|
||||
"filament_id": "GFU99",
|
||||
"setting_id": "GFSR99",
|
||||
"setting_id": "DXZ4Gp5XP5VCJTXY",
|
||||
"name": "Volumic FLEX93 Ultra",
|
||||
"from": "system",
|
||||
"instantiation": "true",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "filament",
|
||||
"filament_id": "GFN99",
|
||||
"setting_id": "GFSN98",
|
||||
"setting_id": "RC5gFyIejXWDJuHH",
|
||||
"name": "Volumic NYLON Ultra (Performance)",
|
||||
"from": "system",
|
||||
"instantiation": "true",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "filament",
|
||||
"filament_id": "GFN99",
|
||||
"setting_id": "GFSN98",
|
||||
"setting_id": "AL4xDgN8EIYb3UrL",
|
||||
"name": "Volumic NYLON Ultra",
|
||||
"from": "system",
|
||||
"instantiation": "true",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "filament",
|
||||
"filament_id": "GFC99",
|
||||
"setting_id": "GFSC99",
|
||||
"setting_id": "ht6Ar3ilCkPT7geN",
|
||||
"name": "Volumic PC (Performance)",
|
||||
"from": "system",
|
||||
"instantiation": "true",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "filament",
|
||||
"filament_id": "GFC99",
|
||||
"setting_id": "GFSC99",
|
||||
"setting_id": "3pUnwXise3J77Qmc",
|
||||
"name": "Volumic PC",
|
||||
"from": "system",
|
||||
"instantiation": "true",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "filament",
|
||||
"filament_id": "GFG99",
|
||||
"setting_id": "GFSG99",
|
||||
"setting_id": "NdegYSDVrQ4Rawtp",
|
||||
"name": "Volumic PCTG Ultra (Performance)",
|
||||
"from": "system",
|
||||
"instantiation": "true",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "filament",
|
||||
"filament_id": "GFG99",
|
||||
"setting_id": "GFSG99",
|
||||
"setting_id": "bNcC5kGe9jOm7Ltu",
|
||||
"name": "Volumic PETG Ultra (Performance)",
|
||||
"from": "system",
|
||||
"instantiation": "true",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "filament",
|
||||
"filament_id": "GFG98",
|
||||
"setting_id": "GFSG50",
|
||||
"setting_id": "IIFtCkVvHoLtxPxj",
|
||||
"name": "Volumic PETG Ultra carbone (Performance)",
|
||||
"from": "system",
|
||||
"instantiation": "true",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "filament",
|
||||
"filament_id": "GFG98",
|
||||
"setting_id": "GFSG50",
|
||||
"setting_id": "nOKT0adoQi3O7Tge",
|
||||
"name": "Volumic PETG Ultra carbone",
|
||||
"from": "system",
|
||||
"instantiation": "true",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "filament",
|
||||
"filament_id": "GFG99",
|
||||
"setting_id": "GFSG99",
|
||||
"setting_id": "CuBXW7SqUeJOcxPP",
|
||||
"name": "Volumic PETG Ultra",
|
||||
"from": "system",
|
||||
"instantiation": "true",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "filament",
|
||||
"filament_id": "GFL99",
|
||||
"setting_id": "GFSL99",
|
||||
"setting_id": "8J2ZIz8ByFNEB9PC",
|
||||
"name": "Volumic PLA Ultra (Performance)",
|
||||
"from": "system",
|
||||
"instantiation": "true",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "filament",
|
||||
"filament_id": "GFL99",
|
||||
"setting_id": "GFSL99",
|
||||
"setting_id": "3BeQ60i4cOs3BfZn",
|
||||
"name": "Volumic PLA Ultra",
|
||||
"from": "system",
|
||||
"instantiation": "true",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "filament",
|
||||
"filament_id": "GFB99",
|
||||
"setting_id": "GFSA04",
|
||||
"setting_id": "nsiOJ8ExySR1RksQ",
|
||||
"name": "Volumic PP Ultra (Performance)",
|
||||
"from": "system",
|
||||
"instantiation": "true",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "filament",
|
||||
"filament_id": "GFB99",
|
||||
"setting_id": "GFSA04",
|
||||
"setting_id": "UA91pv54dzbBRkFe",
|
||||
"name": "Volumic PP Ultra",
|
||||
"from": "system",
|
||||
"instantiation": "true",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "filament",
|
||||
"filament_id": "GFS99",
|
||||
"setting_id": "GFSS99",
|
||||
"setting_id": "L9ZTGhwNpVWT6E5j",
|
||||
"name": "Volumic PVA-BVOH (Performance)",
|
||||
"from": "system",
|
||||
"instantiation": "true",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "filament",
|
||||
"filament_id": "GFS99",
|
||||
"setting_id": "GFSS99",
|
||||
"setting_id": "rw4bB5gYM6YF8v9e",
|
||||
"name": "Volumic PVA",
|
||||
"from": "system",
|
||||
"instantiation": "true",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "filament",
|
||||
"filament_id": "GFL99",
|
||||
"setting_id": "GFSL99",
|
||||
"setting_id": "rxVkBvMZYgHOoFW6",
|
||||
"name": "Volumic UNIVERSAL Ultra (Performance)",
|
||||
"from": "system",
|
||||
"instantiation": "true",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "filament",
|
||||
"filament_id": "GFL99",
|
||||
"setting_id": "GFSL99",
|
||||
"setting_id": "6iOFERN4x6xBbtuT",
|
||||
"name": "Volumic UNIVERSAL Ultra",
|
||||
"from": "system",
|
||||
"instantiation": "true",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "filament",
|
||||
"filament_id": "DFL99",
|
||||
"setting_id": "DFSL99",
|
||||
"setting_id": "Sphn4hoDMpH2uy86",
|
||||
"name": "Désactivé",
|
||||
"from": "system",
|
||||
"instantiation": "true",
|
||||
|
||||
Reference in New Issue
Block a user