added better example in docstring

This commit is contained in:
Jakub Trllo 2022-03-24 13:25:24 +01:00
parent 543e80e84f
commit d0c4f188c7

View file

@ -130,10 +130,13 @@ class OptionalPyblishPluginMixin(OpenPypePyblishPluginMixin):
prepares method which will check if is active or not.
```
def process(self, instance):
# Skip the instance if is not active by data on the instance
if not self.is_active(instance.data):
return
class ValidateScene(
pyblish.api.InstancePlugin, OptionalPyblishPluginMixin
):
def process(self, instance):
# Skip the instance if is not active by data on the instance
if not self.is_active(instance.data):
return
```
"""