mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 10:49:03 +08:00
Add doc for group_id
CURA-6483
This commit is contained in:
parent
40d26bbb6e
commit
0cc00efa79
@ -35,6 +35,11 @@ class GlobalStack(CuraContainerStack):
|
|||||||
super().__init__(container_id)
|
super().__init__(container_id)
|
||||||
|
|
||||||
self.setMetaDataEntry("type", "machine") # For backward compatibility
|
self.setMetaDataEntry("type", "machine") # For backward compatibility
|
||||||
|
|
||||||
|
# TL;DR: If Cura is looking for printers that belong to the same group, it should use "group_id".
|
||||||
|
# Each GlobalStack by default belongs to a group which is identified via "group_id". This group_id is used to
|
||||||
|
# figure out which GlobalStacks are in the printer cluster for example without knowing the implementation
|
||||||
|
# details such as the um_network_key or some other identifier that's used by the underlying device plugin.
|
||||||
self.setMetaDataEntry("group_id", str(uuid.uuid4())) # Assign a new GlobalStack to a unique group by default
|
self.setMetaDataEntry("group_id", str(uuid.uuid4())) # Assign a new GlobalStack to a unique group by default
|
||||||
|
|
||||||
self._extruders = {} # type: Dict[str, "ExtruderStack"]
|
self._extruders = {} # type: Dict[str, "ExtruderStack"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user