Skip to main content
Participant
March 31, 2024
Question

glb exporter using python

  • March 31, 2024
  • 1 reply
  • 375 views

Hello,

 

I am trying to locate the ResourceID for Output template for glTF PBR Metal Rougness. My goal is to create a button that will export a .glb file.

 

For example, I am able to export Arnold textures with

export_preset = substance_painter.resource.ResourceID(context="starter_assets", name="Arnold (AiStandard)")

 

I am currently trying out this

export_preset = substance_painter.resource.ResourceID(context="starter_assets", name="glTF PBR MetalRoughness").

 

I'm looking for what i need to replace "start_assets" with.

 

I was also able to successfully export .gltf mesh using substance_painter.export.export_mesh(file_path: str, option: MeshExportOption ) but there doesn't seem to be supported extension for .glb

 

I was wondering if this is possible.

 

Thank you!

 

 

 

 

 

 

1 reply

Participant
April 2, 2025

Hi!
If you’re looking for the glTF PBR MetalRoughness export preset, the correct URL is: export-preset-generator://gltf.
Just use that as the defaultExportPreset in your export configuration.