pymel.core.general.colorManagementCatalog¶
- colorManagementCatalog(*args, **kwargs)¶
This non-undoable action performs additions and removals of custom color transforms from the Autodesk native color transform catalog. Once a custom color transform has been added to the catalog, it can be used in the same way as the builtin Autodesk native color transforms.
Flags:
Long Name / Short Name Argument Types Properties addTransform / adt unicode Add transform to collection. editUserTransformPath / eut unicode Edit the user transform directory. By changing the directory, all custom transforms currently added could be changed, and new ones could appear. listSupportedExtensions / lse bool List the file extensions that are supported by add transform. This list is valid for all transform types, and therefore this flag does not require use of the type flag. listTransformConnections / ltc bool List the transforms that can be used as source (for viewand outputtypes) or destination (for inputand rendering spacetypes) to connect a custom transform to the rest of the transform collection. path / pth unicode In addTransform mode, the path to the transform data file. queryUserTransformPath / qut bool Query the user transform directory. removeTransform / rmt unicode Remove transform from collection. transformConnection / tcn unicode In addTransform mode, an existing transform to which the added transform will be connected. For an input transform or rendering space transform, this will be a destination. For a view or output transform, this will be a source. type / typ unicode The type of transform added, removed, or whose transform connections are to be listed. Must be one of view, rendering space, input, or output. Flag can have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.colorManagementCatalog
Example:
- ::
import pymel.core as pm
pm.colorManagementCatalog(addTransform=’My Custom Viewing LUT’, type=’view’, path=’/path/to/myCustomViewingLUT.lut’, transformConnection=’ACES’)
pm.colorManagementCatalog(removeTransform=’My Custom Viewing LUT’, type=’view’)
pm.colorManagementCatalog(listTransformConnections=True, type=’view’)
pm.colorManagementCatalog(editUserTransformPath=’/path/transforms’)