pymel.core.general.colorManagementConvert¶
- colorManagementConvert(*args, **kwargs)¶
This command can be used to convert rendering (a.k.a. working) space color values to display space color values. This is useful if you create custom UI with colors painted to screen, where you need to handle color management yourself. The current view transform set in the Color Management user preferences will be used.
Flags:
Long Name / Short Name Argument Types Properties toDisplaySpace / tds float, float, float Converts the given RGB value to display space. Flag can have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.colorManagementConvert
Example:
- ::
import pymel.core as pm
import maya.cmds as cmds color = pm.colorManagementConvert(toDisplaySpace=[0.5, 0.5, 0.5])