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.

clear_operators()[source]ΒΆ

Clears lists of all operators.

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 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

clear_ocio_objects()[source]ΒΆ

Clears lists of all OCIO objects.

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 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_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]