Allow Cura front-end to set plugins (port & address)

This can currently be done by setting the environment variables:
- SIMPLIFY_ENABLE: default disabled, setting this to any value will enable the plugin
- SIMPLIFY_ADDRESS: defaults to localhost
- SIMPLIFY_PORT: defaults to 33700
- POSTPROCESS_ENABLE: default disabled, setting this to any value will enable the plugin
- POSTPROCESS_ADDRESS: defaults to localhost
- POSTPROCESS_PORT: defaults to 33701

Hacky for now

Contributes to CURA-10475
This commit is contained in:
Jelle Spijker 2023-05-19 13:33:05 +02:00
parent e3123e80ca
commit cccfebcc8e
No known key found for this signature in database
GPG key ID: 034D1C0527888B65
2 changed files with 30 additions and 0 deletions

View file

@ -8,12 +8,25 @@ message ObjectList
repeated Setting settings = 2; // meshgroup settings (for one-at-a-time printing)
}
enum SlotID {
SIMPLIFY = 0;
POSTPROCESS = 1;
}
message EnginePlugin
{
SlotID id = 1;
optional string address = 2;
optional uint32 port = 3;
}
message Slice
{
repeated ObjectList object_lists = 1; // The meshgroups to be printed one after another
SettingList global_settings = 2; // The global settings used for the whole print job
repeated Extruder extruders = 3; // The settings sent to each extruder object
repeated SettingExtruder limit_to_extruder = 4; // From which stack the setting would inherit if not defined per object
repeated EnginePlugin engine_plugins = 5;
}
message Extruder