Difference between revisions of "Development/Adding New Slice Settings"
From MatterControl Manual
(Created page with "In MatterControl there are several files that are used to configure SliceSettings *'''StaticDataPrinterSettingsconfig.ini''' - This is the list of all possible printer settin...") |
m (MatterHackers moved page Adding New Slice Settings to Development/Adding New Slice Settings) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
In MatterControl there are several files that are used to configure SliceSettings | In MatterControl there are several files that are used to configure SliceSettings | ||
− | *''' | + | *'''StaticData/PrinterSettings/config.ini''' - This is the list of all possible printer settings. Your new type needs to be in here. |
− | *''' | + | *'''StaticData/SliceSettings/Layouts.txt''' - This file describes where the setting will be laid out in the ui. |
− | *''' | + | *'''StaticData/SliceSettings/Properties.txt''' - This file contains the description of the friendly name and the help for each setting. |
== How to add a new setting == | == How to add a new setting == | ||
Line 13: | Line 13: | ||
If the setting is also applicable to CuraEngine you need to write some code. | If the setting is also applicable to CuraEngine you need to write some code. | ||
− | #Open - | + | #Open - SlicerConfiguration/SlicerMapping/EngineMappingCura.cs |
#Add the setting to curaToDefaultMapping. Write translation code if required | #Add the setting to curaToDefaultMapping. Write translation code if required | ||
If the setting should not be available in Slic3r | If the setting should not be available in Slic3r | ||
− | #Open - | + | #Open - SlicerConfiguration/SlicerMapping/EngineMappingSlic3r.cs |
#Add the setting name to hideItems | #Add the setting name to hideItems | ||
[[Category:Development]] | [[Category:Development]] |
Latest revision as of 14:16, 30 November 2016
In MatterControl there are several files that are used to configure SliceSettings
- StaticData/PrinterSettings/config.ini - This is the list of all possible printer settings. Your new type needs to be in here.
- StaticData/SliceSettings/Layouts.txt - This file describes where the setting will be laid out in the ui.
- StaticData/SliceSettings/Properties.txt - This file contains the description of the friendly name and the help for each setting.
How to add a new setting
- Add the setting name to config.ini
- Put the setting name in the right place in Layouts.txt
- Add the friendly name and help text to Properties.txt
If the setting is also applicable to CuraEngine you need to write some code.
- Open - SlicerConfiguration/SlicerMapping/EngineMappingCura.cs
- Add the setting to curaToDefaultMapping. Write translation code if required
If the setting should not be available in Slic3r
- Open - SlicerConfiguration/SlicerMapping/EngineMappingSlic3r.cs
- Add the setting name to hideItems