ENH: add post_process back

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I05fc655080f3888255297d689552de84a81ed849
This commit is contained in:
salt.wei 2023-03-27 14:54:41 +08:00 committed by Lane.Wei
parent 8c39fbaf22
commit e2d6ed99d1
7 changed files with 25 additions and 6 deletions

View file

@ -747,7 +747,7 @@ static std::vector<std::string> s_Preset_print_options {
"initial_layer_infill_speed", "only_one_wall_top",
"timelapse_type", "internal_bridge_support_thickness",
"wall_generator", "wall_transition_length", "wall_transition_filter_deviation", "wall_transition_angle",
"wall_distribution_count", "min_feature_size", "min_bead_width"
"wall_distribution_count", "min_feature_size", "min_bead_width", "post_process"
};
static std::vector<std::string> s_Preset_filament_options {

View file

@ -86,6 +86,7 @@ bool Print::invalidate_state_by_config_options(const ConfigOptionResolver & /* n
"close_fan_the_first_x_layers",
"machine_end_gcode",
"filament_end_gcode",
"post_process",
"extruder_clearance_height_to_rod",
"extruder_clearance_height_to_lid",
"extruder_clearance_radius",

View file

@ -2028,6 +2028,19 @@ void PrintConfigDef::init_fff_params()
def->max = 1000;
def->set_default_value(new ConfigOptionInt(2));
def = this->add("post_process", coStrings);
def->label = L("Post-processing Scripts");
def->tooltip = L("If you want to process the output G-code through custom scripts, "
"just list their absolute paths here. Separate multiple scripts with a semicolon. "
"Scripts will be passed the absolute path to the G-code file as the first argument, "
"and variables of settings also can be read");
def->gui_flags = "serialized";
def->multiline = true;
def->full_width = true;
def->height = 6;
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionStrings());
def = this->add("printer_model", coString);
//def->label = L("Printer type");
//def->tooltip = L("Type of the printer");

View file

@ -906,6 +906,7 @@ PRINT_CONFIG_CLASS_DERIVED_DEFINE(
((ConfigOptionBool, reduce_infill_retraction))
((ConfigOptionBool, ooze_prevention))
((ConfigOptionString, filename_format))
((ConfigOptionStrings, post_process))
((ConfigOptionString, printer_model))
((ConfigOptionFloat, resolution))
((ConfigOptionFloats, retraction_minimum_travel))