color_tools.filament_collections
Predefined, lazily loaded filament collections.
The collections in this module provide convenient access to commonly used
groups of FilamentRecord objects. The
default filament palette is loaded only when a collection is first accessed
and is then shared by every predefined collection.
- class color_tools.filament_collections.FilamentCollections[source]
Bases:
objectConvenient namespace for immutable, predefined filament collections.
Collection data is loaded lazily. Each attribute returns a cached tuple containing all matching records in the default filament database, regardless of the user’s owned-filament configuration.
Examples:
from color_tools import FilamentCollections for filament in FilamentCollections.BAMBU_PLA_BASIC: print(filament.color, filament.hex)
- BAMBU_PLA_BASIC
All Bambu Lab PLA Basic filaments.
- BAMBU_PLA_MATTE
All Bambu Lab PLA Matte filaments.
- BAMBU_PLA_BASICMATTE
All Bambu Lab PLA Basic and PLA Matte filaments.