X-Git-Url: http://users.mur.at/ms/git/gitweb/?p=OpenColorIO-Configs.git;a=blobdiff_plain;f=aces_1.0.0%2Fpython%2Faces_ocio%2Faces_config.py;h=225c1d69a40ce50187af3034283a3423a54058cf;hp=654dc34c7277daa7c98177a16e8ee6b3f186936b;hb=05b23bcf8a44e585846bd504e6715167311a803d;hpb=cad9d48a0f1067769435904348e9fffeffd25eb9 diff --git a/aces_1.0.0/python/aces_ocio/aces_config.py b/aces_1.0.0/python/aces_ocio/aces_config.py index 654dc34..225c1d6 100755 --- a/aces_1.0.0/python/aces_ocio/aces_config.py +++ b/aces_1.0.0/python/aces_ocio/aces_config.py @@ -23,7 +23,12 @@ from aces_ocio.colorspaces import red from aces_ocio.colorspaces import sony from aces_ocio.process import Process -from aces_ocio.utilities import replace, ColorSpace, compact +from aces_ocio.utilities import ( + ColorSpace, + colorspace_prefixed_name, + compact, + replace, + unpack_default) __author__ = 'ACES Developers' __copyright__ = 'Copyright (C) 2014 - 2015 - ACES Developers' @@ -360,11 +365,6 @@ def add_colorspace_aliases(config, config.addColorSpace(ocio_colorspace_alias) -def colorspace_prefixed_name(colorspace): - prefix = colorspace.family.replace("/", " - ") - return "%s - %s" % (prefix, colorspace.name) - - def add_look(config, look, prefix, @@ -386,12 +386,7 @@ def add_look(config, Return value description. """ - look_name = look[0] - look_colorspace = look[1] - look_lut = look[2] - look_cccid = None - if len(look) == 4: - look_cccid = look[3] + look_name, look_colorspace, look_lut, look_cccid = unpack_default(look, 4) print('Adding look %s - %s' % (look_name, ", ".join(look)))