validate_no_fabric
Validate that workfile was saved before publishing.
ValidateNoFabric
Bases: InstancePlugin
Validate that workfile was saved.
Source code in client/ayon_marvelousdesigner/plugins/publish/validate_no_fabric.py
10 11 12 13 14 15 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 | |
process(instance)
Process the instance to validate no fabric is selected.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
instance | Instance | The instance to validate. | required |
Raises:
| Type | Description |
|---|---|
PublishValidationError | If a fabric is selected in the scene. |
Source code in client/ayon_marvelousdesigner/plugins/publish/validate_no_fabric.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | |
repair(instance) classmethod
Repair the instance by resetting the fabric index.
Source code in client/ayon_marvelousdesigner/plugins/publish/validate_no_fabric.py
40 41 42 43 44 45 46 47 48 49 | |