# 'rendering' and 'compositing_linear' roles default to the 'scene_linear'
# value if not set explicitly
if rendering:
- config.setRole("rendering", rendering)
+ config.setRole('rendering', rendering)
if compositing_linear:
- config.setRole("compositing_linear", compositing_linear)
+ config.setRole('compositing_linear', compositing_linear)
if scene_linear:
config.setRole(ocio.Constants.ROLE_SCENE_LINEAR, scene_linear)
if not rendering:
- config.setRole("rendering", scene_linear)
+ config.setRole('rendering', scene_linear)
if not compositing_linear:
- config.setRole("compositing_linear", scene_linear)
+ config.setRole('compositing_linear', scene_linear)
return True
# unknown type
else:
- print("Ignoring unknown transform type : %s" % transform['type'])
+ print('Ignoring unknown transform type : %s' % transform['type'])
if len(ocio_transforms) > 1:
group_transform = ocio.GroupTransform()
description = colorspace.description
if colorspace.aces_transform_id:
- description += "\n\nACES Transform ID : %s" % colorspace.aces_transform_id
+ description += '\n\nACES Transform ID : %s' % colorspace.aces_transform_id
ocio_colorspace_alias = ocio.ColorSpace(
name=alias_name,
look_name, look_colorspace, look_lut, look_cccid = unpack_default(look, 4)
- print('Adding look %s - %s' % (look_name, ", ".join(look)))
+ print('Adding look %s - %s' % (look_name, ', '.join(look)))
#
# Copy look lut
#
if custom_lut_dir:
if not '$' in look_lut:
- print("Getting ready to copy look lut : %s" % look_lut)
+ print('Getting ready to copy look lut : %s' % look_lut)
shutil.copy2(look_lut, custom_lut_dir)
look_lut = os.path.split(look_lut)[1]
else:
- print("Skipping LUT copy because path contains a context variable")
+ print('Skipping LUT copy because path contains a context variable')
#
# Create OCIO Look
# add to config
config.addLook(lk1)
- print("Creating aliased colorspace")
+ print('Creating aliased colorspace')
#
# Create OCIO colorspace that references that look
# - Needed for some implementations that don't process looks well
# - Also needed for some implementations that don't expose looks well
#
- look_aliases = ["look_%s" % compact(look_name)]
+ look_aliases = ['look_%s' % compact(look_name)]
colorspace = ColorSpace(look_name,
aliases=look_aliases,
- description="The %s Look colorspace" % look_name,
+ description='The %s Look colorspace' % look_name,
family='Look')
colorspace.from_reference_transforms = [{'type': 'look',
# Add this colorspace into the main list of colorspaces
config_data['colorSpaces'].append(colorspace)
- print("")
+ print('')
def integrate_looks_into_views(config,
else:
for display, view_list in config_data['displays'].iteritems():
output_colorspace_copy = None
- look_names_string = ""
+ look_names_string = ''
for view_name, output_colorspace in view_list.iteritems():
- if view_name == "Output Transform":
+ if view_name == 'Output Transform':
- print("Adding new View that incorporates looks")
+ print('Adding new View that incorporates looks')
# Make a copy of the output colorspace
output_colorspace_copy = copy.deepcopy(output_colorspace)
if not look_name in config_data['looks']:
config_data['looks'].append(look_name)
- look_names_string = ", ".join(look_names)
- output_colorspace_copy.name = "%s with %s" % (
+ look_names_string = ', '.join(look_names)
+ output_colorspace_copy.name = '%s with %s' % (
output_colorspace.name, look_names_string)
output_colorspace_copy.aliases = [
- "out_%s" % compact(output_colorspace_copy.name)]
+ 'out_%s' % compact(output_colorspace_copy.name)]
print(
- "Colorspace that incorporates looks created : %s" % output_colorspace_copy.name)
+ 'Colorspace that incorporates looks created : %s' % output_colorspace_copy.name)
config_data['colorSpaces'].append(output_colorspace_copy)
if output_colorspace_copy:
print(
- "Adding colorspace that incorporates looks into view list")
+ 'Adding colorspace that incorporates looks into view list')
# Change the name of the View
view_list[
- "Output Transform with %s" % look_names_string] = output_colorspace_copy
+ 'Output Transform with %s' % look_names_string] = output_colorspace_copy
config_data['displays'][display] = view_list
- # print( "Display : %s, View List : %s" % (display, ", ".join(view_list)) )
+ # print( 'Display : %s, View List : %s' % (display, ', '.join(view_list)) )
def create_config(config_data,
alias_colorspaces.append(
[reference_data, reference_data, reference_data.aliases])
- print("")
+ print('')
- # print( "color spaces : %s" % [x.name for x in sorted(config_data['colorSpaces'])])
+ # print( 'color spaces : %s' % [x.name for x in sorted(config_data['colorSpaces'])])
#
# Add Looks and Look colorspaces
config_data,
multiple_displays)
- print("")
+ print('')
print('Adding the regular color spaces')
description = colorspace.description
if colorspace.aces_transform_id:
- description += "\n\nACES Transform ID : %s" % colorspace.aces_transform_id
+ description += '\n\nACES Transform ID : %s' % colorspace.aces_transform_id
ocio_colorspace = ocio.ColorSpace(
name=colorspace.name,
print('')
- print("")
+ print('')
#
# We add roles early so we can create alias colorspaces with the names of the roles
config_data['roles']['texture_paint']])
# Not allowed for the moment. role names can not overlap with colorspace names.
- '''
+ """
# Add the aliased colorspaces for each role
for role_name, role_colorspace_name in config_data['roles'].iteritems():
role_colorspace_prefixed_name = prefixed_names[role_colorspace_name]
- print( "Finding colorspace : %s" % role_colorspace_prefixed_name )
+ print( 'Finding colorspace : %s' % role_colorspace_prefixed_name )
# Find the colorspace pointed to by the role
role_colorspaces = [colorspace for colorspace in config_data['colorSpaces'] if colorspace.name == role_colorspace_prefixed_name]
role_colorspace = None
role_colorspace = reference_data
if role_colorspace:
- print( "Adding an alias colorspace named %s, pointing to %s" % (
+ print( 'Adding an alias colorspace named %s, pointing to %s' % (
role_name, role_colorspace.name))
add_colorspace_aliases(config, reference_data, role_colorspace, [role_name], 'Roles')
- '''
+ """
else:
set_config_default_roles(
texture_paint=config_data['roles']['texture_paint'])
# Not allowed for the moment. role names can not overlap with colorspace names.
- '''
+ """
# Add the aliased colorspaces for each role
for role_name, role_colorspace_name in config_data['roles'].iteritems():
# Find the colorspace pointed to by the role
role_colorspace = reference_data
if role_colorspace:
- print( "Adding an alias colorspace named %s, pointing to %s" % (
+ print( 'Adding an alias colorspace named %s, pointing to %s' % (
role_name, role_colorspace.name))
add_colorspace_aliases(config, reference_data, role_colorspace, [role_name], 'Roles')
- '''
+ """
- print("")
+ print('')
# We add these at the end as some applications use the order of the colorspaces
# definitions in the config to order the colorspaces in their selection lists.
for reference, colorspace, aliases in alias_colorspaces:
add_colorspace_aliases(config, reference, colorspace, aliases)
- print("")
+ print('')
print('Adding the diplays and views')
if multiple_displays:
# Built list of looks to add to Displays
looks = config_data['looks'] if ('looks' in config_data) else []
- looks = ", ".join(looks)
- print("Creating multiple displays, with looks : %s" % looks)
+ looks = ', '.join(looks)
+ print('Creating multiple displays, with looks : %s' % looks)
# Note: We don't reorder the Displays to put the 'defaultDisplay' first
# because OCIO will order them alphabetically when the config is written to disk.
for display, view_list in config_data['displays'].iteritems():
for view_name, colorspace in view_list.iteritems():
config.addDisplay(display, view_name, colorspace.name, looks)
- if 'Output Transform' in view_name and looks != "":
+ if 'Output Transform' in view_name and looks != '':
# Add normal View, without looks
config.addDisplay(display, view_name, colorspace.name)
# Add View with looks
- view_name_with_looks = "%s with %s" % (view_name, looks)
+ view_name_with_looks = '%s with %s' % (view_name, looks)
config.addDisplay(display, view_name_with_looks,
colorspace.name, looks)
else:
# Built list of looks to add to Displays
looks = config_data['looks'] if ('looks' in config_data) else []
- look_names = ", ".join(looks)
+ look_names = ', '.join(looks)
displays_views_colorspaces = []
view_list = config_data['displays'][display]
for view_name, colorspace in view_list.iteritems():
if 'Output Transform' in view_name:
- # print( "Adding view for %s" % colorspace.name )
+ # print( 'Adding view for %s' % colorspace.name )
# We use the Display names as the View names in this case
# as there is a single Display that contains all views.
# If View includes looks
if 'with' in view_name:
# Integrate looks into view name
- display_cleaned = "%s with %s" % (
+ display_cleaned = '%s with %s' % (
display_cleaned, look_names)
viewsWithLooksAtEnd = False
config.setActiveDisplays(','.join(sorted(displays)))
config.setActiveViews(','.join(views))
- print("")
+ print('')
# Make sure we didn't create a bad config
config.sanityCheck()
for colorspace in config_data['colorSpaces']:
colorspace.name = prefixed_names_inverse[colorspace.name]
except:
- print("Prefixed names")
+ print('Prefixed names')
for original, prefixed in prefixed_names.iteritems():
- print("%s, %s" % (original, prefixed))
+ print('%s, %s' % (original, prefixed))
- print("\n")
+ print('\n')
- print("Inverse Lookup of Prefixed names")
+ print('Inverse Lookup of Prefixed names')
for prefixed, original in prefixed_names_inverse.iteritems():
- print("%s, %s" % (prefixed, original))
+ print('%s, %s' % (prefixed, original))
raise
return config
# Uncomment if you would like to support the older behavior where ODTs
# that have support for full and legal range output generate a LUT for each.
- '''
+ """
# Create two entries for ODTs that have full and legal range support
for odt_ctl_name, odt_values in odt_info.iteritems():
if odt_values['transformHasFullLegalSwitch']:
odt_info_C['%s - Full' % odt_ctl_name] = odt_values_full
del (odt_info_C[odt_ctl_name])
- '''
+ """
# Generate appropriate LUTs for each ODT
for odt_ctl_name, odt_values in odt_info_C.iteritems():
args = ['--iconfig', config_path,
'-v']
if prefix:
- args += ['--inputspace', "ACES - %s" % input_space]
- args += ['--outputspace', "Output - %s" % odt_name]
+ args += ['--inputspace', 'ACES - %s' % input_space]
+ args += ['--outputspace', 'Output - %s' % odt_name]
else:
args += ['--inputspace', input_space]
args += ['--outputspace', odt_name]
odt_name,
input_space)]
if prefix:
- args += ['--shaperspace', "Utility - %s" % shaper_name,
+ args += ['--shaperspace', 'Utility - %s' % shaper_name,
'--shapersize', str(lut_resolution_shaper)]
else:
args += ['--shaperspace', shaper_name,
args = ['--iconfig', config_path,
'-v']
if prefix:
- args += ['--inputspace', "ACES - %s" % input_space]
- args += ['--outputspace', "Output - %s" % odt_name]
+ args += ['--inputspace', 'ACES - %s' % input_space]
+ args += ['--outputspace', 'Output - %s' % odt_name]
else:
args += ['--inputspace', input_space]
args += ['--outputspace', odt_name]
'%s - %s for %s data' % (
odt_prefix, odt_name, input_space)]
if prefix:
- args += ['--shaperspace', "Utility - %s" % shaper_name,
+ args += ['--shaperspace', 'Utility - %s' % shaper_name,
'--shapersize', str(lut_resolution_shaper)]
else:
args += ['--shaperspace', shaper_name,
args = ['--iconfig', config_path,
'-v']
if prefix:
- args += ['--inputspace', "ACES - %s" % input_space]
- args += ['--outputspace', "Output - %s" % odt_name]
+ args += ['--inputspace', 'ACES - %s' % input_space]
+ args += ['--outputspace', 'Output - %s' % odt_name]
else:
args += ['--inputspace', input_space]
args += ['--outputspace', odt_name]
'%s - %s for %s data' % (
odt_prefix, odt_name, input_space)]
if input_space == 'ACEScg':
- lin_shaper_name = "%s - AP1" % shaper_name
+ lin_shaper_name = '%s - AP1' % shaper_name
else:
lin_shaper_name = shaper_name
if prefix:
- lin_shaper_name = "Utility - %s" % lin_shaper_name
+ lin_shaper_name = 'Utility - %s' % lin_shaper_name
args += ['--shaperspace', lin_shaper_name,
'--shapersize', str(lut_resolution_shaper)]
# Directory for custom LUTs
custom_lut_dir = None
if copy_custom_luts:
- custom_lut_dir = os.path.join(config_directory, "custom")
+ custom_lut_dir = os.path.join(config_directory, 'custom')
lut_directory = create_config_dir(config_directory,
bake_secondary_LUTs,
look_info = []
def look_info_callback(option, opt_str, value, parser):
- print("look_info_callback")
+ print('look_info_callback')
print(option, opt_str, value, parser)
- if opt_str == "--addCustomLookCDL":
+ if opt_str == '--addCustomLookCDL':
look_info.append(value)
- elif opt_str == "--addCustomLookLUT":
+ elif opt_str == '--addCustomLookLUT':
look_info.append(value)
- elif opt_str == "--addACESLookCDL":
- look_info.append([value[0], "ACES - ACEScc", value[1], value[2]])
- elif opt_str == "--addACESLookLUT":
- look_info.append([value[0], "ACES - ACEScc", value[1]])
+ elif opt_str == '--addACESLookCDL':
+ look_info.append([value[0], 'ACES - ACEScc', value[1], value[2]])
+ elif opt_str == '--addACESLookLUT':
+ look_info.append([value[0], 'ACES - ACEScc', value[1]])
p = optparse.OptionParser(description='',
prog='create_aces_config',
default=False)
p.add_option('--addCustomLookLUT', '', type='string', nargs=3,
- action="callback", callback=look_info_callback)
+ action='callback', callback=look_info_callback)
p.add_option('--addCustomLookCDL', '', type='string', nargs=4,
- action="callback", callback=look_info_callback)
+ action='callback', callback=look_info_callback)
p.add_option('--addACESLookLUT', '', type='string', nargs=2,
- action="callback", callback=look_info_callback)
+ action='callback', callback=look_info_callback)
p.add_option('--addACESLookCDL', '', type='string', nargs=3,
- action="callback", callback=look_info_callback)
+ action='callback', callback=look_info_callback)
p.add_option('--copyCustomLUTs', action='store_true', default=False)
options, arguments = p.parse_args()
aces2065_1.description = (
'The Academy Color Encoding System reference color space')
aces2065_1.equality_group = ''
- aces2065_1.aliases = ["lin_ap0", "aces"]
+ aces2065_1.aliases = ['lin_ap0', 'aces']
aces2065_1.family = 'ACES'
aces2065_1.is_data = False
aces2065_1.allocation_type = ocio.Constants.ALLOCATION_LG2
cs = ColorSpace(name)
cs.description = 'The %s color space' % name
- cs.aliases = ["acescc", "acescc_ap1"]
+ cs.aliases = ['acescc', 'acescc_ap1']
cs.equality_group = ''
cs.family = 'ACES'
cs.is_data = False
cs.allocation_type = ocio.Constants.ALLOCATION_UNIFORM
cs.allocation_vars = [min_value, max_value]
- cs.aces_transform_id = "ACEScsc.ACEScc_to_ACES.a1.0.0"
+ cs.aces_transform_id = 'ACEScsc.ACEScc_to_ACES.a1.0.0'
ctls = [os.path.join(aces_ctl_directory,
'ACEScc',
cs = ColorSpace(name)
cs.description = 'The %s color space' % name
- cs.aliases = ["acesproxy", "acesproxy_ap1"]
+ cs.aliases = ['acesproxy', 'acesproxy_ap1']
cs.equality_group = ''
cs.family = 'ACES'
cs.is_data = False
- cs.aces_transform_id = "ACEScsc.ACESproxy10i_to_ACES.a1.0.0"
+ cs.aces_transform_id = 'ACEScsc.ACESproxy10i_to_ACES.a1.0.0'
ctls = [os.path.join(aces_ctl_directory,
'ACESproxy',
cs = ColorSpace(name)
cs.description = 'The %s color space' % name
- cs.aliases = ["acescg", "lin_ap1"]
+ cs.aliases = ['acescg', 'lin_ap1']
cs.equality_group = ''
cs.family = 'ACES'
cs.is_data = False
cs.allocation_type = ocio.Constants.ALLOCATION_LG2
cs.allocation_vars = [-8, 5, 0.00390625]
- cs.aces_transform_id = "ACEScsc.ACEScg_to_ACES.a1.0.0"
+ cs.aces_transform_id = 'ACEScsc.ACEScg_to_ACES.a1.0.0'
cs.to_reference_transforms = []
name = '%s%s' % (name, bit_depth)
cs = ColorSpace(name)
cs.description = '%s color space - used for film scans' % name
- cs.aliases = ["adx%s" % str(bit_depth)]
+ cs.aliases = ['adx%s' % str(bit_depth)]
cs.equality_group = ''
cs.family = 'ADX'
cs.is_data = False
if bit_depth == 10:
- cs.aces_transform_id = "ACEScsc.ADX10_to_ACES.a1.0.0"
+ cs.aces_transform_id = 'ACEScsc.ADX10_to_ACES.a1.0.0'
cs.bit_depth = ocio.Constants.BIT_DEPTH_UINT10
ADX_to_CDD = [1023 / 500, 0, 0, 0,
0, 0, 0, 1]
offset = [-95 / 500, -95 / 500, -95 / 500, 0]
elif bit_depth == 16:
- cs.aces_transform_id = "ACEScsc.ADX16_to_ACES.a1.0.0"
+ cs.aces_transform_id = 'ACEScsc.ADX16_to_ACES.a1.0.0'
cs.bit_depth = ocio.Constants.BIT_DEPTH_UINT16
ADX_to_CDD = [65535 / 8000, 0, 0, 0,
print(sorted_LMTs)
for lmt in sorted_LMTs:
lmt_name, lmt_values = lmt
- lmt_aliases = ["look_%s" % compact(lmt_values['transformUserName'])]
+ lmt_aliases = ['look_%s' % compact(lmt_values['transformUserName'])]
cs = create_ACES_LMT(
lmt_values['transformUserName'],
lmt_values,
# Defining the *Log 2* shaper.
log2_shaper_name = shaper_name
- log2_shaper_name_aliases = ["crv_%s" % compact(log2_shaper_name)]
+ log2_shaper_name_aliases = ['crv_%s' % compact(log2_shaper_name)]
log2_params = {
'middleGrey': 0.18,
'minExposure': -6,
shaper_data[log2_shaper_name] = log2_shaper_data
# Space with a more user-friendly name. Direct copy otherwise.
- log2_shaper_copy_name = "Log2 Shaper"
+ log2_shaper_copy_name = 'Log2 Shaper'
log2_shaper_copy_colorspace = ColorSpace(log2_shaper_copy_name)
log2_shaper_copy_colorspace.description = 'The %s color space' % log2_shaper_copy_name
log2_shaper_copy_colorspace.aliases = [
- "crv_%s" % compact(log2_shaper_copy_name)]
+ 'crv_%s' % compact(log2_shaper_copy_name)]
log2_shaper_copy_colorspace.equality_group = log2_shaper_copy_name
log2_shaper_copy_colorspace.family = log2_shaper_colorspace.family
log2_shaper_copy_colorspace.is_data = log2_shaper_colorspace.is_data
colorspaces.append(log2_shaper_copy_colorspace)
# Defining the *Log2 shaper that includes the AP1* primaries.
- log2_shaper_api1_name = "%s - AP1" % "Log2 Shaper"
+ log2_shaper_api1_name = '%s - AP1' % 'Log2 Shaper'
log2_shaper_api1_colorspace = ColorSpace(log2_shaper_api1_name)
log2_shaper_api1_colorspace.description = 'The %s color space' % log2_shaper_api1_name
log2_shaper_api1_colorspace.aliases = [
- "%s_ap1" % compact(log2_shaper_copy_name)]
+ '%s_ap1' % compact(log2_shaper_copy_name)]
log2_shaper_api1_colorspace.equality_group = log2_shaper_api1_name
log2_shaper_api1_colorspace.family = log2_shaper_colorspace.family
log2_shaper_api1_colorspace.is_data = log2_shaper_colorspace.is_data
# Defining the *Log2 shaper that includes the AP1* primaries.
# Named with 'shaper_name' variable. Needed for some LUT baking steps.
- shaper_api1_name = "%s - AP1" % shaper_name
+ shaper_api1_name = '%s - AP1' % shaper_name
shaper_api1_colorspace = ColorSpace(shaper_api1_name)
shaper_api1_colorspace.description = 'The %s color space' % shaper_api1_name
- shaper_api1_colorspace.aliases = ["%s_ap1" % compact(shaper_name)]
+ shaper_api1_colorspace.aliases = ['%s_ap1' % compact(shaper_name)]
shaper_api1_colorspace.equality_group = shaper_api1_name
shaper_api1_colorspace.family = log2_shaper_colorspace.family
shaper_api1_colorspace.is_data = log2_shaper_colorspace.is_data
# Define the base *Dolby PQ Shaper*
#
- dolbypq_shaper_name = "Dolby PQ 10000"
- dolbypq_shaper_name_aliases = ["crv_%s" % "dolbypq_10000"]
+ dolbypq_shaper_name = 'Dolby PQ 10000'
+ dolbypq_shaper_name_aliases = ['crv_%s' % 'dolbypq_10000']
dolbypq_shaper_colorspace = create_dolbypq(
aces_ctl_directory,
# Define the *Dolby PQ Shaper that considers a fixed linear range*
#
- dolbypq_scaled_shaper_name = "Dolby PQ Scaled"
- dolbypq_scaled_shaper_name_aliases = ["crv_%s" % "dolbypq_scaled"]
+ dolbypq_scaled_shaper_name = 'Dolby PQ Scaled'
+ dolbypq_scaled_shaper_name_aliases = ['crv_%s' % 'dolbypq_scaled']
dolbypq_scaled_shaper_colorspace = create_dolbypq_scaled(
aces_ctl_directory,
odt_legal = odt_values.copy()
- odt_aliases = ["out_%s" % compact(odt_name_legal)]
+ odt_aliases = ['out_%s' % compact(odt_name_legal)]
cs = create_ACES_RRT_plus_ODT(
odt_name_legal,
'Log': log_display_space,
'Output Transform': cs}
- '''
+ """
# Generating full range transform for *ODTs* that can generate
# either *legal* or *full* output.
if odt_values['transformHasFullLegalSwitch']:
odt_full = odt_values.copy()
odt_full['legalRange'] = 0
- odt_full_aliases = ["out_%s" % compact(odt_name_full)]
+ odt_full_aliases = ['out_%s' % compact(odt_name_full)]
cs_full = create_ACES_RRT_plus_ODT(
odt_name_full,
'Raw': linear_display_space,
'Log': log_display_space,
'Output Transform': cs_full}
- '''
+ """
return (colorspaces, displays)
# Figuring out if this transform has options for processing full and legal range
transform_full_legal_switch = False
for line in lines:
- if line.strip() == "input varying int legalRange = 0":
- # print( "%s has legal range flag" % transform_user_name)
+ if line.strip() == 'input varying int legalRange = 0':
+ # print( '%s has legal range flag' % transform_user_name)
transform_full_legal_switch = True
break
colorspaces.extend(odts)
# Wish there was an automatic way to get this from the CTL
- defaultDisplay = "sRGB (D60 sim.)"
+ defaultDisplay = 'sRGB (D60 sim.)'
roles = {'color_picking': ACEScg.name,
'color_timing': ACEScc.name,
cs = create_matrix_colorspace('XYZ-D60',
to_reference_values=[aces.ACES_XYZ_TO_AP0],
from_reference_values=[aces.ACES_AP0_TO_XYZ],
- aliases=["lin_xyz_d60"])
+ aliases=['lin_xyz_d60'])
colorspaces.append(cs)
#
cs = create_matrix_colorspace(
'Linear - P3-D60',
from_reference_values=[aces.ACES_AP0_TO_XYZ, XYZ_to_P3D60],
- aliases=["lin_p3d60"])
+ aliases=['lin_p3d60'])
colorspaces.append(cs)
#
cs = create_matrix_colorspace(
'Linear - P3-DCI',
from_reference_values=[aces.ACES_AP0_TO_XYZ, XYZ_to_P3DCI],
- aliases=["lin_p3dci"])
+ aliases=['lin_p3dci'])
colorspaces.append(cs)
#
cs = create_matrix_colorspace(
'Linear - sRGB',
from_reference_values=[aces.ACES_AP0_TO_XYZ, XYZ_to_Rec709],
- aliases=["lin_srgb"])
+ aliases=['lin_srgb'])
colorspaces.append(cs)
# *Linear* to *sRGB* Transfer Function*
transfer_function_sRGB_to_linear,
lut_directory,
lut_resolution_1d,
- aliases=["crv_srgb"])
+ aliases=['crv_srgb'])
colorspaces.append(cs)
# *ACES* to *sRGB* Primaries + Transfer Function*
lut_directory,
lut_resolution_1d,
from_reference_values=[aces.ACES_AP0_TO_XYZ, XYZ_to_Rec709],
- aliases=["srgb"])
+ aliases=['srgb'])
colorspaces.append(cs)
#
cs = create_matrix_colorspace(
'Linear - Rec.709',
from_reference_values=[aces.ACES_AP0_TO_XYZ, XYZ_to_Rec709],
- aliases=["lin_rec709"])
+ aliases=['lin_rec709'])
colorspaces.append(cs)
# *Linear* to *Rec. 709* Transfer Function*
transfer_function_Rec709_to_linear,
lut_directory,
lut_resolution_1d,
- aliases=["crv_rec709"])
+ aliases=['crv_rec709'])
colorspaces.append(cs)
# *ACES* to *Rec. 709* Primaries + Transfer Function*
lut_directory,
lut_resolution_1d,
from_reference_values=[aces.ACES_AP0_TO_XYZ, XYZ_to_Rec709],
- aliases=["rec709_camera"])
+ aliases=['rec709_camera'])
colorspaces.append(cs)
#
cs = create_matrix_colorspace(
'Linear - Rec.2020',
from_reference_values=[aces.ACES_AP0_TO_XYZ, XYZ_to_Rec2020],
- aliases=["lin_rec2020"])
+ aliases=['lin_rec2020'])
colorspaces.append(cs)
# *Linear* to *Rec. 2020 10 bit* Transfer Function*
transfer_function_Rec2020_10bit_to_linear,
lut_directory,
lut_resolution_1d,
- aliases=["crv_rec2020"])
+ aliases=['crv_rec2020'])
colorspaces.append(cs)
# *ACES* to *Rec. 2020 10 bit* Primaries + Transfer Function*
lut_directory,
lut_resolution_1d,
from_reference_values=[aces.ACES_AP0_TO_XYZ, XYZ_to_Rec2020],
- aliases=["rec2020_camera"])
+ aliases=['rec2020_camera'])
colorspaces.append(cs)
#
transfer_function_Rec1886_to_linear,
lut_directory,
lut_resolution_1d,
- aliases=["crv_rec1886"])
+ aliases=['crv_rec1886'])
colorspaces.append(cs)
# *ACES* to *sRGB* Primaries + Transfer Function*
lut_directory,
lut_resolution_1d,
from_reference_values=[aces.ACES_AP0_TO_XYZ, XYZ_to_Rec709],
- aliases=["rec709_display"])
+ aliases=['rec709_display'])
colorspaces.append(cs)
# *ACES* to *sRGB* Primaries + Transfer Function*
lut_directory,
lut_resolution_1d,
from_reference_values=[aces.ACES_AP0_TO_XYZ, XYZ_to_Rec2020],
- aliases=["rec2020_display"])
+ aliases=['rec2020_display'])
colorspaces.append(cs)
#
cs = create_matrix_colorspace(
'Linear - RIMM ROMM (ProPhoto)',
from_reference_values=[AP0_to_RIMM],
- aliases=["lin_prophoto", "lin_rimm"])
+ aliases=['lin_prophoto', 'lin_rimm'])
colorspaces.append(cs)
#
cs = create_matrix_colorspace(
'Linear - Adobe RGB',
from_reference_values=[AP0_to_ADOBERGB],
- aliases=["lin_adobergb"])
+ aliases=['lin_adobergb'])
colorspaces.append(cs)
#
cs = create_matrix_colorspace(
'Linear - Adobe Wide Gamut RGB',
from_reference_values=[AP0_to_ADOBERGB],
- aliases=["lin_adobewidegamutrgb"])
+ aliases=['lin_adobewidegamutrgb'])
colorspaces.append(cs)
return colorspaces
def create_raw():
# *Raw* utility space
- name = "Raw"
+ name = 'Raw'
raw = ColorSpace(name)
raw.description = 'The %s color space' % name
- raw.aliases = ["raw"]
+ raw.aliases = ['raw']
raw.equality_group = name
raw.family = 'Utility'
raw.is_data = True