plugin
Plugin API for Mocha Pro AYON addon.
MochaCreator
Bases: Creator
Mocha Pro creator.
Source code in client/ayon_mocha/api/plugin.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 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 95 |
|
collect_instances()
Collect instances from the host application.
Source code in client/ayon_mocha/api/plugin.py
46 47 48 49 50 51 52 53 54 55 |
|
create(product_name, instance_data, pre_create_data)
Create product instance in the host application.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
product_name | str | Name of the product to be created. | required |
instance_data | dict | Data to be used for creating the product. | required |
pre_create_data | dict | Data to be used before creating the product. | required |
Returns:
Name | Type | Description |
---|---|---|
CreatedInstance | CreatedInstance | Created product instance. |
Source code in client/ayon_mocha/api/plugin.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
|
remove_instances(instances)
Remove instances from the host application.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
instances | list[CreatedInstance] | List of instances to be removed. | required |
Source code in client/ayon_mocha/api/plugin.py
85 86 87 88 89 90 91 92 93 94 95 |
|
update_instances(update_list)
Update instances in the host application.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
update_list | list[dict] | List of instances to be updated. | required |
Source code in client/ayon_mocha/api/plugin.py
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
|
MochaLoader
Bases: LoaderPlugin
Mocha Pro loader base class.
Source code in client/ayon_mocha/api/plugin.py
98 99 100 101 |
|