Utilizzo della gestione colore

La classe SDColorManagementEngine , accessibile dalla classe SDApplication, contiene informazioni sulle impostazioni correnti di gestione del colore.

**## Accesso al motore di gestione dei colori ed esecuzione di query``` import sd

ctx = sd.getContext()

app = ctx.getSDApplication()

Access the color management engine.

cm = app.getColorManagementEngine()

Currently getName can return "legacy", "ace" or "ocio"

depending on the color management settings in the preferences.

cmName = cm.getName()

print(cmName)

print(cm.getWorkingColorSpaceName())

print(cm.getRawColorSpaceName())

if cmName == "ocio":

If OpenColorIO is enabled, print the config file name.

print(cm.getOCIOConfigFileName()) 

List all color spaces.

colorSpaces = cm.getColorSpaces()

for cs in colorSpaces:

print(cs.get())

È inoltre possibile *assegnare spazi colore* alle risorse bitmap da Python.### Impostazione degli spazi colore nelle risorse bitmap import sd

import sd

from sd.api.sdproperty import *

from sd.api.sdresourcebitmap import SDResourceBitmap

from sd.api.sdvaluestring import SDValueString

from sd.api.sdvaluebool import SDValueBool

ctx = sd.getContext()

app = ctx.getSDApplication()

pkgMgr = app.getPackageMgr()

cm = app.getColorManagementEngine()

colorSpaces = cm.getColorSpaces()

Get all the resources in the first package.

pkg = pkgMgr.getPackages()[0]

resources = pkg.getChildrenResources(isRecursive=True)

for res in resources:

if isinstance(res, SDResourceBitmap):

props = res.getProperties(SDPropertyCategory.Annotation)

p0 = res.getPropertyFromId("bitmap_color_space", SDPropertyCategory.Annotation)

cs = res.getAnnotationPropertyValueFromId("bitmap_color_space")

print(cs.get())

p1 = res.getPropertyFromId("bitmap_premultiplied_alpha", SDPropertyCategory.Annotation)

cs = res.getAnnotationPropertyValueFromId("bitmap_premultiplied_alpha")

print(cs.get())

Assign new values for the color space and premultiplied alpha properties.

res.setPropertyValue(p0, colorSpaces[2])

res.setPropertyValue(p1, SDValueBool.sNew(False))


+-----------------------------------+
| Target Insertion                  |
+--------------------------+--------+
| recommendation-more-help |        |
+--------------------------+--------+

---

+----------------------------------+
| Toc                              |
+----------------------------------+
| substance-3d-designer-help-guide |
+----------------------------------+

---

+-------------+
| Doc Actions |
+-------------+
|             |
+-------------+

+----------+
| Mini Toc |
+----------+
|          |
+----------+

+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Metadata                                                                                                                                                                            |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| last-update                   | 2026-09-11T06:27:44.000Z                                                                                                                            |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| git-commit-file               | e746e55ed45cebfb3691373bb67430acc8a93696                                                                                                            |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| cloud                         | Experience Cloud                                                                                                                                    |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| solution                      | Substance 3D Designer, Substance 3D                                                                                                                 |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| usetq                         | true                                                                                                                                                |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| landing-page-name             | substance-3d                                                                                                                                        |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| landing-page-breadcrumb-title | Substance 3D                                                                                                                                        |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| type                          | Documentation                                                                                                                                       |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| mini-toc-levels               | 2                                                                                                                                                   |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| git-repo                      | https\://github.com/AdobeDocs/substance-3d-designer.it-IT                                                                                           |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| index                         | true                                                                                                                                                |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| temp-push                     | yes                                                                                                                                                 |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| source-git-commit             | 5b9c9d12e2ccd76f75ec2a74815f9c68c43c06a2                                                                                                            |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| workflow-type                 | tm\+mt                                                                                                                                              |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| source-wordcount              | 127                                                                                                                                                 |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| ht-degree                     | 0%                                                                                                                                                  |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| git-filename                  | https\://github.com/AdobeDocs/substance-3d-designer.it-IT/help/scripting/using-color-management/using-color-management.md                           |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| user-guide-title              |                                                                                                                                                     |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| breadcrumb-title              |                                                                                                                                                     |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| user-guide-description        |                                                                                                                                                     |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| nudge                         | true                                                                                                                                                |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| helpx\_url                    | https\://helpx.adobe.com/it/substance-3d-designer/scripting/using-color-management.html                                                             |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| description                   | Scoprite come utilizzare le funzioni di gestione del colore nello scripting Substance 3D Designer Python per colori precisi.                        |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| helpx\_creative\_field        |                                                                                                                                                     |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| helpx\_description            | Designer > Scripting > Using color management                                                                                                       |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| helpx\_experience\_level      |                                                                                                                                                     |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| helpx\_learn\_topic           |                                                                                                                                                     |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| helpx\_tags                   |                                                                                                                                                     |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| title                         | Utilizzo della gestione colore \| Adobe Substance 3D Designer                                                                                       |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| coveo-content-type            | Documentation                                                                                                                                       |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| landing-page-description      | Scoprite come utilizzare le funzioni di gestione del colore nello scripting Substance 3D Designer Python per colori precisi.                        |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| git-commit                    | d25b697be2cb7c80c8da56ff8a0b2de42350ef6b                                                                                                            |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| pipeline\_filename            | help/scripting/using-color-management/using-color-management.md                                                                                     |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| git-edit                      | https\://github.com/AdobeDocs/substance-3d-designer.it-IT/blob/main/help/scripting/using-color-management/using-color-management.md                 |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| git-issue                     | https\://github.com/AdobeDocs/substance-3d-designer.it-IT/issues/new?body=File%3A%20help/scripting/using-color-management/using-color-management.md |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| toc                           | substance-3d-designer-help-guide                                                                                                                    |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| product                       | Substance 3D Designer, Substance 3D                                                                                                                 |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| coveo-solution                | Substance 3D Designer                                                                                                                               |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| json-ld                       | {   "@context": "https\://schema.org",   "@type": "HowTo",   "@id":                                                                                 |
|                               | "https\://experienceleague.adobe.com/it/docs/substance-3d-designer/using/scripting/using-color-management#/schema",   "url":                        |
|                               | "https\://experienceleague.adobe.com/it/docs/substance-3d-designer/using/scripting/using-color-management",   "headline": "Utilizzo della gestione  |
|                               | colore \| Adobe Substance 3D Designer",   "description": "Scoprite come utilizzare le funzioni di gestione del colore nello scripting Substance 3D  |
|                               | Designer Python per colori precisi.",   "inLanguage": "it",   "dateCreated": "2026-09-11",   "datePublished": "2026-09-11",   "dateModified":       |
|                               | "2026-09-11",   "publisher": {     "@type": "Organization",     "name": "Adobe",     "url": "https\://experienceleague.adobe.com"   },   "about":   |
|                               | \[     {       "@type": "SoftwareApplication",       "name": "Substance 3D Designer"     },     {       "@type": "SoftwareApplication",             |
|                               | "name": "Substance 3D"     }   ],   "keywords": \[     "Substance 3D Designer",     "Substance 3D"   ],   "mainEntityOfPage": {     "@type":        |
|                               | "WebPage",     "@id": "https\://experienceleague.adobe.com/it/docs/substance-3d-designer/using/scripting/using-color-management",     "url":        |
|                               | "https\://experienceleague.adobe.com/it/docs/substance-3d-designer/using/scripting/using-color-management",     "name": "Utilizzo della gestione    |
|                               | colore \| Adobe Substance 3D Designer",     "description": "Scoprite come utilizzare le funzioni di gestione del colore nello scripting Substance   |
|                               | 3D Designer Python per colori precisi."   } }                                                                                                       |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| html-lang                     | it                                                                                                                                                  |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+