ProcessorsΒΆ

Processor module to be used by Renderers.

class lablib.processors.AYONHieroEffectsFileProcessor(filepath)[source]ΒΆ

Class for processing an AYON Hiero effects file.

Parameters:

filepath (Path) – Path to the effects file.

clear_operators()[source]ΒΆ

Clears lists of all operators.

property color_operatorsΒΆ

List of color operators to be processed.

get_oiiotool_cmd()[source]ΒΆ

Returns arguments for oiiotool command.

load()[source]ΒΆ

Loads the effects file.

Attention

This method clears the lists of all operators before loading.

property repo_operatorsΒΆ

List of repositioning operators to be processed.

class lablib.processors.AYONOCIOLookFileProcessor(filepath)[source]ΒΆ

Class for processing an AYON OCIO Look file.

Parameters:

filepath (Path) – Path to the OCIO Look file.

operatorΒΆ

The OCIO Look operator.

Type:

AYONOCIOLookProduct

get_oiiotool_cmd()[source]ΒΆ

Get arguments for the OIIO command.

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 operator before loading the file.

class lablib.processors.OIIORepositionProcessor(**kwargs)[source]ΒΆ

Processor for repositioning images.

Hint

You can use this processor without operators only specifying dst_width or dst_height. This way OIIORepositionProcessor will 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

get_oiiotool_cmd()[source]ΒΆ

Get the OIIO arguments for repositioning images.

Returns:

The OIIO arguments.

Return type:

List[str]