Answered
Export only BaseColor using python script
Hi,
I'm working on a script to export maps from Sampler using python,
but I can't find a way to only export the BaseColor channel.
Actually it's exporting all of the outputs.
Here is a snippet from the script
Any suggestions? thanks 🙂
# Function to export as PNG with Blender export preset
def export_as_png_with_blender_preset(asset_to_export, w_res, h_res, destination_path):
[blender_export_preset] = ssa.get_export_presets("Blender Cycles/Eevee")
asset_to_export.export(w_resolution=w_res,
h_resolution=h_res,
path=destination_path,
format=ssa.png,
channels=BaseColor,
preset=blender_export_preset) (It's hard to find this kind of info in the API documentation...)
