Skip to content

validate_render_no_compositing

ValidateRenderNoCompositing

Bases: BlenderInstancePlugin

Validate Post Processing > Compositing checkbox is enabled in the render settings.

This is required as the rendering workflow relies on the compositing nodes to process the final render.

Source code in client/ayon_blender/plugins/publish/validate_render_no_compositing.py
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
class ValidateRenderNoCompositing(plugin.BlenderInstancePlugin):
    """Validate Post Processing > Compositing checkbox
    is enabled in the render settings.

    This is required as the rendering workflow relies on the compositing
    nodes to process the final render.
    """

    order = pyblish.api.ValidatorOrder
    hosts = ["blender"]
    families = ["render"]
    label = "Validate Render No Compositing"
    actions = [RepairAction]

    def process(self, instance):
        if not bpy.context.scene.render.use_compositing:
            raise PublishValidationError(
                title="Post Processing > Compositing checkbox is disabled",
                message="Post Processing > Compositing checkbox is disabled.",
                description=(
                    "### Post Processing > Compositing Disabled\n\n"
                    "As the rendering workflow relies on the compositing nodes to process "
                    "the final render, it is essential to have the compositing checkbox "
                    "enabled in the render settings. "
                    "Use the Repair action to enable the compositing checkbox."
                )
            )

    @classmethod
    def repair(cls, instance):
        bpy.context.scene.render.use_compositing = True