Skip to main content
Inspiring
August 2, 2021
Answered

Substance 3d Designer Version Control doesn't let you check out exported textures

  • August 2, 2021
  • 1 reply
  • 1154 views

I'm trying to configure Substance 3D Designer for a team of artists to interface with perforce, but it doesn't seem to be support checking-out and export textures that are already in p4.

Will this feature be supported?

(currently on v11.2.1)

This topic has been closed for replies.
Correct answer Luca Giarrizzo

Hello,

 

You can use the exportSDGraphOutputs function in the sd.tools.export module. This is its description:

 

sd.tools.export.exportSDGraphOutputs(aSDGraph, aOutputDir='', aFileExt='png')
Description: Export the textures of the output node of the specified SDGraph

Arguments:

  • aSDGraph: The graph that contains the outputs to export
  • aOutputDir: The output directory used to save the output’s images
  • aFileExt: The exported file format

Returns: True if succeed else False

 

You can set up a custom UI to start the export using this function and use the returned boolean to trigger a check out.

 

In Designer, the Help menu lets you access the Scripting documentation, which is a library of classes, functions and objects available in the Python API.

 

Best regards.

 

1 reply

Luca Giarrizzo
Community Manager
Community Manager
August 3, 2021

Hello,

 

Unfortunately, we have no plans on expanding the current version control implementation built into Designer.

This integration will be deprecated in favour of letting users leverage the Python API to set up their custom solution for version control. Indeed, the Python API will be expanded in the future.

 

For the time being, you can refer to the Version control section of Designer's documentation regarding the current implementation as well as the Version control item of the Project settings page.

For check out issues, this thread may be relevant.

 

Best regards.

 

Luca Giarrizzo | Quality Engineer - Substance 3D Designer | Adobe
Inspiring
August 3, 2021

Thanks for the response. That makes sense. We have our own p4 libs that we typically use. Will we be able to make the texture export dialog run a python script to check out the files at export time? Or will we have to write our own custom export UI?

Luca Giarrizzo
Community Manager
Luca GiarrizzoCommunity ManagerCorrect answer
Community Manager
August 4, 2021

Hello,

 

You can use the exportSDGraphOutputs function in the sd.tools.export module. This is its description:

 

sd.tools.export.exportSDGraphOutputs(aSDGraph, aOutputDir='', aFileExt='png')
Description: Export the textures of the output node of the specified SDGraph

Arguments:

  • aSDGraph: The graph that contains the outputs to export
  • aOutputDir: The output directory used to save the output’s images
  • aFileExt: The exported file format

Returns: True if succeed else False

 

You can set up a custom UI to start the export using this function and use the returned boolean to trigger a check out.

 

In Designer, the Help menu lets you access the Scripting documentation, which is a library of classes, functions and objects available in the Python API.

 

Best regards.

 

Luca Giarrizzo | Quality Engineer - Substance 3D Designer | Adobe