Skip to main content
Participating Frequently
August 10, 2022
Question

getGraphExportOptions callback in Python API?

  • August 10, 2022
  • 1 reply
  • 333 views

I am writing a custom script for Substance Designer and want to use the Python API rather than the soon-to-be-deprecated scripting feature. Where can I find the functionality of the getGraphExportOptions callback in the Python API? I see the other four callbacks (related to file save and file load) but nothing related to the export options. Thank you for your help!

This topic has been closed for replies.

1 reply

Participating Frequently
August 17, 2022

Hi,

 

There is no equivalent to the getGraphExportOptions in the API. There are some technical reasons that make it hard to add a similar callback.

 

Everything that is needed to implement your own graph export is available in the API.

It is extra work but in some cases writing your own has extra benefits. For example you could add validation steps before exporting or maybe publishing the exported textures in an asset manager.

 

Est.

Participating Frequently
August 17, 2022

Hi Est,

Thanks for your reply. Yes, I've begun an alternate implementation using the API.

Marianne