User Guide Cancel

exception | Substance 3D Painter Python API

exception

exception module

This module declares Substance 3D Painter specific exceptions.

class substance_painter.exception.

ProjectError

ProjectError(value)

Raised when an operation or function is incompatible with the current project, or when the current state of the project is invalid.

Trying to save a project when there is no project opened would raise a ProjectError.

class substance_painter.exception.

ResourceNotFoundError

ResourceNotFoundError(value)

Raised when a Substance 3D Painter resource could not be found.

Providing an invalid resource ID would raise a ResourceNotFoundError.

class substance_painter.exception.

ServiceNotFoundError

ServiceNotFoundError(value)

Raised when an operation or function relies on a service which could not be found. It could mean that the service has not been started yet.

Trying to execute a command while Substance 3D Painter is starting could raise ServiceNotFoundError.

 Adobe

Get help faster and easier

New user?

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online