06-30-2020, 06:59 PM
I'm sorry to say that the documentation has a typo, and should state that the named color is not added to the swatches panel.
Regarding accessing the swatches from the document (and adding a color to the list), we have not yet implemented Adobe's underlying AISwatchListSuite in hdi_core. This is a good feature to consider for future inclusion though, so I will add it to the list.
If you need to access/manipulate the swatch list before then, you can always work with the AISwatchListSuite directly.
Regarding accessing the swatches from the document (and adding a color to the list), we have not yet implemented Adobe's underlying AISwatchListSuite in hdi_core. This is a good feature to consider for future inclusion though, so I will add it to the list.
If you need to access/manipulate the swatch list before then, you can always work with the AISwatchListSuite directly.