User Guide Cancel

Plugin basics | Substance 3D Designer

Plugin basics

A plugin is a Python file or a Python module that defines an initializeSDPlugin() function.

The initializeSDPlugin() function is called when the plugin is loaded.
In this function, you can create user interface elements, register callbacks and any other piece of functionality you might need.

Optionally, the plugin can define an uninitializeSDPlugin() function that will be called when the plugin is unloaded.
You can use this function to free resources, close network connections and similar things.

# Plugin entry point. Called by Designer when loading a plugin.
def initializeSDPlugin():
print("Hello!")
# If this function is present in your plugin,
# it will be called by Designer when unloading the plugin.
def uninitializeSDPlugin():
print("Bye!")
# Plugin entry point. Called by Designer when loading a plugin. def initializeSDPlugin(): print("Hello!") # If this function is present in your plugin, # it will be called by Designer when unloading the plugin. def uninitializeSDPlugin(): print("Bye!")
# Plugin entry point. Called by Designer when loading a plugin. 
def initializeSDPlugin(): 
 print("Hello!") 
 
# If this function is present in your plugin, 
# it will be called by Designer when unloading the plugin. 
def uninitializeSDPlugin(): 
 print("Bye!")

Get help faster and easier

New user?