Utilizzo delle tinte piatte
La classe SDSpotColorLibrary , accessibile dalla classe SDApplication, contiene informazioni sulle librerie di colori tinta piatta incluse in Designer.
**Questa classe consente di elencare le guide colori e i colori tinta piatta e di individuare colori tinta piatta specifici o il colore tinta piatta più vicino a un determinato colore RGB.Le tinte piatte non sono disponibili in Designer quando si utilizza OpenColorIO. In questo caso, app.getSpotColorLibrary() restituirà None. IMPORTANTLe tinte piatte non sono disponibili in Designer quando si utilizza OpenColorIO. In questo caso, app.getSpotColorLibrary() restituirà None.``` import sd
ctx = sd.getContext()
app = ctx.getSDApplication()
spotLib = app.getSpotColorLibrary()
Find a color by color book and color name.
col = spotLib.findSpotColorByName(
spotColorBookName="PANTONE+ Solid Coated",
spotColorName="PANTONE Yellow 012 C"
)
print(col)
print(col.get())
print(spotLib.getSpotColorBookName(col))
print(spotLib.getSpotColorName(col))
Find the closest spot color in a specific book, to an RGB color.
The RGB color is specified in the working color space currently used by Designer.
col = spotLib.findClosestSpotColor(
spotColorBookName="PANTONE+ Solid Coated",
r=88 / 255.0,
g=132 / 255.0,
b=167 / 255.0
)
print(col)
print(col.get())
print(spotLib.getSpotColorBookName(col))
print(spotLib.getSpotColorName(col))
Le tinte piatte possono essere recuperate e impostate nelle proprietà del nodo.
import sd
from sd.api.sdbasetypes import *
from sd.api.sdvaluecolorrgba import SDValueColorRGBA
from sd.api.sdvaluespotcolor import SDValueSpotColor
ctx = sd.getContext()
app = ctx.getSDApplication()
uiMgr = app.getUIMgr()
spotLib = app.getSpotColorLibrary()
node = uiMgr.getCurrentGraphSelection()[0]
Set RGBA color in node property.
rgbaColor = SDValueColorRGBA.sNew(ColorRGBA(0.7, 0.5, 0.2, 1))
node.setInputPropertyValueFromId("outputcolor", rgbaColor)
Set spot color in node property.
spotColor = spotLib.findSpotColorByName(
spotColorBookName="PANTONE+ Solid Coated",
spotColorName="PANTONE Yellow 012 C"
)
node.setInputPropertyValueFromId("outputcolor", spotColor)
Get color from node property (could be a SDValueColorRGBA or a SDValueSpotColor)
anyColor = node.getInputPropertyValueFromId("outputcolor")
Print the RGBA components of the color.
print(anyColor.get())
Check if the color is a spot color.
if isinstance(anyColor, SDValueSpotColor):
Print the spot color information of the color.
print(spotLib.getSpotColorBookName(anyColor))
print(spotLib.getSpotColorName(anyColor))
+-----------------------------------+
| Target Insertion |
+--------------------------+--------+
| recommendation-more-help | |
+--------------------------+--------+
---
+----------------------------------+
| Toc |
+----------------------------------+
| substance-3d-designer-help-guide |
+----------------------------------+
---
+-------------+
| Doc Actions |
+-------------+
| |
+-------------+
+----------+
| Mini Toc |
+----------+
| |
+----------+
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Metadata |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| last-update | 2026-08-26T12:23:45.000Z |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| git-commit-file | 9e30f66629f5ed44ed093228c994f94d34fd9dd2 |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| cloud | Experience Cloud |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| solution | ecbd8bf1-b852-466c-8a9d-e329dd1cfa83, 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 | 113 |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| ht-degree | 0% |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| git-filename | https\://github.com/AdobeDocs/substance-3d-designer.it-IT/help/scripting/using-spot-colors/using-spot-colors.md |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| user-guide-title | |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| breadcrumb-title | |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| user-guide-description | |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| nudge | true |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| helpx\_url | https\://helpx.adobe.com/it/substance-3d-designer/scripting/using-spot-colors.html |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| description | Scoprite come utilizzare le tinte piatte nello scripting Substance 3D Designer Python per flussi di lavoro a colori specializzati. |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| helpx\_creative\_field | |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| helpx\_description | Designer > Scripting > Using spot colors |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| helpx\_experience\_level | |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| helpx\_learn\_topic | |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| helpx\_tags | |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| title | Utilizzo delle tinte piatte \| Adobe ecbd8bf1-b852-466c-8a9d-e329dd1cfa83 |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| coveo-content-type | Documentation |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| landing-page-description | Scoprite come utilizzare le tinte piatte nello scripting Substance 3D Designer Python per flussi di lavoro a colori specializzati. |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| git-commit | 9e30f66629f5ed44ed093228c994f94d34fd9dd2 |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| pipeline\_filename | help/scripting/using-spot-colors/using-spot-colors.md |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| git-edit | https\://github.com/AdobeDocs/substance-3d-designer.it-IT/blob/main/help/scripting/using-spot-colors/using-spot-colors.md |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| git-issue | https\://github.com/AdobeDocs/substance-3d-designer.it-IT/issues/new?body=File%3A%20help/scripting/using-spot-colors/using-spot-colors.md |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| toc | substance-3d-designer-help-guide |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| product | ecbd8bf1-b852-466c-8a9d-e329dd1cfa83, Substance 3D |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| coveo-solution | ecbd8bf1-b852-466c-8a9d-e329dd1cfa83 |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| json-ld | { "@context": "https\://schema.org", "@type": "HowTo", "@id": |
| | "https\://experienceleague.adobe.com/it/docs/substance-3d-designer/using/scripting/using-spot-colors#/schema", "url": |
| | "https\://experienceleague.adobe.com/it/docs/substance-3d-designer/using/scripting/using-spot-colors", "headline": "Utilizzo delle |
| | tinte piatte \| Adobe ecbd8bf1-b852-466c-8a9d-e329dd1cfa83", "description": "Scoprite come utilizzare le tinte piatte nello scripting |
| | Substance 3D Designer Python per flussi di lavoro a colori specializzati.", "inLanguage": "it", "dateCreated": "2026-08-26", |
| | "datePublished": "2026-08-26", "dateModified": "2026-08-26", "publisher": { "@type": "Organization", "name": "Adobe", |
| | "url": "https\://experienceleague.adobe.com" }, "about": \[ { "@type": "SoftwareApplication", "name": |
| | "ecbd8bf1-b852-466c-8a9d-e329dd1cfa83" }, { "@type": "SoftwareApplication", "name": "Substance 3D" } ], |
| | "keywords": \[ "ecbd8bf1-b852-466c-8a9d-e329dd1cfa83", "Substance 3D" ], "mainEntityOfPage": { "@type": "WebPage", |
| | "@id": "https\://experienceleague.adobe.com/it/docs/substance-3d-designer/using/scripting/using-spot-colors", "url": |
| | "https\://experienceleague.adobe.com/it/docs/substance-3d-designer/using/scripting/using-spot-colors", "name": "Utilizzo delle tinte |
| | piatte \| Adobe ecbd8bf1-b852-466c-8a9d-e329dd1cfa83", "description": "Scoprite come utilizzare le tinte piatte nello scripting |
| | Substance 3D Designer Python per flussi di lavoro a colori specializzati." } } |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| html-lang | it |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+