This project contains plugin to use OpenAI DALL-E2 inside Substance Designer.
Users can create images from text prompts, get variations for any node in substance designer or modify existing images using a mask.
- Substance Designer 10.1.1 or above
- OpenAI DALL-E2 API Key
- Python Packages
- openai
- sd (This should be installed if you use Substance Designer Python Environment. On default, it is loacted here:
"C:\Program Files\Adobe\Adobe Substance 3D Designer\plugins\pythonsdk\python.exe"
)
-
Clone or Download the repo.
-
Open Substance Designer.
-
Open Plugin Manager from Tools > Plugin Manager.
-
Click on Install Button and select the image_creator.sdplugin.
-
Create a free or paid account for OpenAI in order to get the API Key.
-
Login to the newly created account. Click on Presonal (on the top right), then click on View API Keys.
-
Click on Create New Secret Key button
Note: Do not share the API Key with anyone.
-
Copy the key.
-
Navigate to the folder below.
Documents\Adobe\Adobe Substance 3D Designer\python\sduserplugins\image_creator\image_creator\
-
Open .keys.txt file in notepad or any other text editor.
-
Delete everything in .keys.txt, paste your API key and save the text document.
-
Restart Substance Designer.
Plugin is now installed and should be ready to use.
-
If the plugin was successfully installed you should see the OpenAI toolbar on creating a new graph in Substance Designer. You can click on the OpenAI icon to hide or unhide the plugin related UI.
-
Write any text prompt in the text field and press play button to create a bitmap node with the resultant image.
-
Select any node with RGBA output in the active graph and then click on the blue refresh button to create variations.
Note: If you are using the free version of OpenAI then the selected node image should be less than 4MB, reduce the Project resolution to decrease the output image size. Errors regarding this can be seen in Windows > Console.
-
Select a RGBA Image and a back and white RGBA mask with a new prompt and then click on the button with the "paint brush icon" to edit the image only in the masked areas with the new text prompt.