global: configData rename to config

This commit is contained in:
Jakub Jezek 2023-01-17 13:56:31 +01:00
parent 4e0d9137b7
commit 78b0e70bfd
No known key found for this signature in database
GPG key ID: 730D7C02726179A7
3 changed files with 5 additions and 5 deletions

View file

@ -362,7 +362,7 @@ class ExtractorColormanaged(Extractor):
{
# for other publish plugins and loaders
"colorspace": "linear",
"configData": {
"config": {
# for future references in case need
"path": "/abs/path/to/config.ocio",
# for other plugins within remote publish cases
@ -418,7 +418,7 @@ class ExtractorColormanaged(Extractor):
if colorspace:
colorspace_data = {
"colorspace": colorspace,
"configData": config_data
"config": config_data
}
# update data key

View file

@ -17,7 +17,7 @@ class ExtractColorspaceData(publish.ExtractorColormanaged):
Output data:
representation[colorspaceData] = {
"colorspace": "linear",
"configData": {
"config": {
"path": "/abs/path/to/config.ocio",
"template": "{project[root]}/path/to/config.ocio"
}

View file

@ -23,14 +23,14 @@ It's up to the Loaders to read these values and apply the correct expected color
### Keys
- **colorspace** - string value used in other publish plugins and loaders
- **configData** - storing two versions of path.
- **config** - storing two versions of path.
- **path** - is formated and with baked platform root. It is used for posible need to find out where we were sourcing color config during publishing.
- **template** - unformated tempate resolved from settings. It is used for other plugins targeted to remote publish which could be processed at different platform.
### Example
{
"colorspace": "linear",
"configData": {
"config": {
"path": "/abs/path/to/config.ocio",
"template": "{project[root]}/path/to/config.ocio"
}