Unfortunately, it not only locks out the user, but the scripting interface as well. Script UI dialogs are what is called “modal dialogs” meaning it locks out the user from interacting with the application. Adding swatches requires modifying the application or document model. Dialogs vs Palettesĭavid asked for me to include an “Add” button which allows for the creation of swatches without closing the dialog. Once that option was out, there was no real benefit to going through the (considerable!) added effort of doing this add-on as a plugin instead of a script. I came to the conclusion that it probably could be done, but the relevant APIs are not really documented, so it would require a considerable amount of reverse-engineering work to figure out how to go about it. I looked into the SDK a bit to try to find that answer. But I used quite a few interesting scripting features along the way… Script vs Pluginĭavid wanted to know if it would be possible to hack into the standard New Swatch dialog to add the ability to create the hex colors there. I couldn’t sit down to work on it until Saturday night, and by Sunday afternoon I was basically done. It was not too difficult, and proved to be a nice distraction from “real” work… □īefore reading further, make sure you get the script here! On Thursday, David Blatner sent me an email asking how difficult it would be to create a script which would create swatches in InDesign from hex values.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |