ProcessorsΒΆ
Processor module to be used by Renderers.
- class lablib.processors.AYONHieroEffectsFileProcessor(filepath, target_dir_path=None, logger=None)[source]ΒΆ
Class for processing an AYON Hiero effects file.
- Parameters:
filepath (Path) β Path to the effects file.
target_dir_path (Path) β Target directory path for the operator.
logger (logging.Logger) β Logger instance.
- load()[source]ΒΆ
Loads the effects file. .. attention:: This method clears the lists of all operators before loading.
- property ocio_objectsΒΆ
List of OCIO objects to be processed.
- property repo_operatorsΒΆ
List of repositioning operators to be processed.
- class lablib.processors.AYONOCIOLookFileProcessor(filepath, target_path=None, logger=None)[source]ΒΆ
Class for processing an AYON OCIO Look file.
- Parameters:
filepath (Path) β Path to the OCIO Look file.
- target_pathΒΆ
Target path for the operator.
- Type:
Path
- logΒΆ
Logger instance.
- Type:
logging.Logger
- load()[source]ΒΆ
Load the OCIO Look file.
Note
This globs all relative files recursively so we can make sure files in transforms are having correct path.
Attention
This method clears the OCIO objects before loading the file.
- property ocio_objectsΒΆ
List of OCIO objects to be processed.
- class lablib.processors.OIIORepositionProcessor(**kwargs)[source]ΒΆ
Processor for repositioning images.
Hint
You can use this processor without operators only specifying
dst_widthordst_height. This wayOIIORepositionProcessorwill act as a basic reformat.- operatorsΒΆ
The list of repositioning operators.
- Type:
List
- src_widthΒΆ
The source image width.
- Type:
int
- dst_widthΒΆ
The destination image width.
- Type:
int
- src_heightΒΆ
The source image height.
- Type:
int
- dst_heightΒΆ
The destination image height.
- Type:
int
- fitΒΆ
The fit mode for the image.
- Type:
str