Skip to main content
Participant
August 20, 2024
Answered

Export textures using Python?

  • August 20, 2024
  • 2 replies
  • 281 views

I'm working on some Substance Designer pipeline tools and saw in the API reference an export function: sd.tools.export.exportSDGraphOutputs(aSDGraph, aOutputDir='', aFileExt='png'). This is exactly what I need but when I tested it out in the Python Editor Substance Designer returned:

 

[ERR][9]module 'sd.tools' has no attribute 'export'

 

 When I ran dir() on the sd.tools it does seem that this export module does not exist:

 

[MSG][3]['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', 'graphlayout']

 

 Was this functionality moved?

This topic has been closed for replies.
Correct answer J35162169mdlo

I figured this out. I went through some of the examples more thoroughly and noticed this:

from sd.tools import io

 So I tested out this convention and the call actually does work when imported as:

from sd.tools import export

2 replies

J35162169mdloAuthorCorrect answer
Participant
August 20, 2024

I figured this out. I went through some of the examples more thoroughly and noticed this:

from sd.tools import io

 So I tested out this convention and the call actually does work when imported as:

from sd.tools import export
Participant
August 20, 2024

Forgot to mention, but here is the version I'm on: 14.0.0 build 8074 commit 90a793f8 Release (07/22/2024)