Hello World
Our first publish will be about printing the classic "Hello World" to the screen. Here is the full source code.
1
import pyblish.api
2
3
class MyPlugin(pyblish.api.ContextPlugin):
4
def process(self, context):
5
print("hello python")
6
7
pyblish.api.register_plugin(MyPlugin)
8
9
import pyblish.util
10
pyblish.util.publish()
Copied!
Running this in any Python environment, such as a standalone or built-in interpreter, will cause hello python to be printed to the screen.
Last modified 1yr ago
Copy link