API
Search…
Separator
A visual separator for the parent menu of Actions.

Example

1
import pyblish.api
2
3
4
class OpenInExplorer(pyblish.api.Action):
5
label = "Open in Explorer"
6
on = "failed" plug-in
7
icon = "hand-o-up"
8
9
def process(self, context):
10
import subprocess
11
subprocess.call("start .", shell=True)
12
13
14
class Validate(pyblish.api.Validator):
15
actions = [
16
# Order of items is preserved
17
pyblish.api.Category("My Actions"),
18
MyAction,
19
pyblish.api.Separator,
20
]
21
22
def process(self, context, plugin):
23
raise Exception("Failed")
Copied!
Last modified 1yr ago
Copy link
Contents
Example