example
Example nodes and extension.
Basic2IntegerAddition
Bases: WorkflowNode
Add two integers together.
Source code in client/ayon_workflow/plugin_system/example.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | |
execute(a, b=5)
Add two integers together.
Source code in client/ayon_workflow/plugin_system/example.py
30 31 32 33 34 | |
CreateAnEmptyFile
Bases: WorkflowNode
Creates an empty file at the specified path. Delete on revert.
Source code in client/ayon_workflow/plugin_system/example.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | |
execute(path)
Creates an empty file at the specified path.
Source code in client/ayon_workflow/plugin_system/example.py
83 84 85 86 87 88 | |
revert_execute(path, result, failure)
Remove the created file.
Source code in client/ayon_workflow/plugin_system/example.py
90 91 92 93 94 | |
MultiIntegerAddition
Bases: WorkflowNode
Add two integers together.
Source code in client/ayon_workflow/plugin_system/example.py
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | |
execute(multi_input)
Add a bunch of integers together.
Source code in client/ayon_workflow/plugin_system/example.py
53 54 55 56 57 58 59 | |
MultiOutputNode
Bases: WorkflowNode
An example node that returns multiple outputs.
Source code in client/ayon_workflow/plugin_system/example.py
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | |
execute()
Return two outputs of different types.
Source code in client/ayon_workflow/plugin_system/example.py
111 112 113 114 | |