-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AY-7195_Allow project with multiple texture sets to export as one texture output #20
Comments
For the current Substance Painter API, there is no way to export multiple texture sets as one texture output. from PIL import Image
# Load the images
image1 = Image.open(r'D:\udim_maps\Bread_Base_color_1001.png').convert("RGBA")
image2 = Image.open(r'D:\udim_maps\Table_Base_color_1001.png').convert("RGBA")
# Define the position where you want to place image_b onto image_a
position = (0, 0) # Change the coordinates as needed
# Create a new image for the result
result = image1.copy()
# Paste image_b into image_a at the specified position
result.paste(image1, position, image2)
# Save the combined image
result.save(r'D:\udim_maps\combined_normal_map.png') Meanwhile, we need to ask the Substance support if they have any suggestion/updates for this particular issue. So the best solution to do so is to figure out how to merge the maps with transparency after exporting these maps from SP and uses pillow to combine all these maps. And this needs some refactoring on the collector and a new extractor for exporting the maps and combine them. |
Some additional points, this feature might be limited to certain color bit depth (16-bits for dithering and transparency) or image formats (exr, tiff). Image formats such as png and 8-bit color-depth can support but these two options need more time to write the script to combine images. |
This may be trivial with You can even do it with sequences which may mean we can do the full UDIM sequence in one subprocess call? Note that we are already providing |
Please describe the enhancement you have in mind and explain what the current shortcomings are?
How would you imagine the implementation of the enhancemenent?
No response
Describe alternatives you've considered:
No response
Additional context:
link to discussion on Discord
(might be a private channel)
This issue was automatically created from Clickup ticket AY-7195
The text was updated successfully, but these errors were encountered: