blenderproc.python.utility.MaterialGetter module
This module provides functions to filter materials.
- class blenderproc.python.utility.MaterialGetter.MaterialGetter[source]
Bases:
object
Filters materials.
- static perform_and_condition_check(and_condition, materials, used_materials_to_check=None)[source]
Checks for all materials in the scene if all given conditions are true, collects them in the return list.
- Parameters:
and_condition – Given conditions. Type: dict.
materials – Materials, that are already in the return list. Type: list.
used_materials_to_check – a list of materials to perform the check on. Type: list. Default: all materials
- Returns:
Materials that fulfilled given conditions. Type: list.