ynput / ayon-core

Apache License 2.0
25 stars 31 forks source link

Substance Painter: Support for exporting maps/layer stacks with specific channels #532

Closed moonyuet closed 3 months ago

moonyuet commented 3 months ago

Changelog Description

This PR is to add support for exporting outputs with specific channels defined in the settings and the users can choose to export layer with use_selection being enabled. image image User can add/define their channel map in the ayon project setting, once they add their maps, it would show up in the multiselection options of export channel. You need to specify your channel type and the name of your channel type(of which name extension you set in your export presets) image

Additional info



## Testing notes:
Without layer stack
1. Create Texture Set with your preferred template
2. Choose your export channel
3. Publish
4. Only your chosen export channel is being published

With selected layer stack
1. Create Texture Set with your preferred template with your selected layer stack with the `use_selection` being enabled.
2. Choose your export channel
3. Publish
4. Only your selected layer stack with your chosen export channel being published

General
1. Create Texture Set
2. Export Channel without any input
3. Publish
4. All channels should be published correctly
ynbot commented 3 months ago

Task linked: AY-5104 Substance: selective export of layers

moonyuet commented 3 months ago

Screenshot 2024-05-23 174439

Export channel does not support for certain export presets output.

"2D View",
"Document channels + Normal + AO (No Alpha)",  
"Document channels + Normal + AO (With Alpha)", 
"Sketchfab",  
"Substance 3D Stager",
 "USD PBR Metal Roughness", 
"glTF PBR Metal Roughness",  
"glTF PBR Metal Roughness + Displacement texture (experimental)" 

you can find this in the changelog.

LiborBatek commented 3 months ago

@moonyuet haha so it was even bigger accidental mistake (to have chosen wrong export preset :)

Thanks...I got it!

moonyuet commented 3 months ago

@moonyuet haha so it was even bigger accidental mistake (to have chosen wrong export preset :)

Thanks...I got it!

maybe we need to somehow inform in the docs that certain export presets are not being supported in export_channel setting.

moonyuet commented 3 months ago

@iLLiCiTiT can you check on the code?