Skip to content

increment_write_node

Increments render path in write node with actual workfile version

IncrementWriteNodePathPostSubmit

Bases: InstancePlugin, OptionalPyblishPluginMixin

Increments render path in write node with actual workfile version after workfile has been incremented.

This allows users to manually trigger a local render being sure the render output paths are updated.

Source code in client/ayon_nuke/plugins/publish/increment_write_node.py
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
class IncrementWriteNodePathPostSubmit(
    pyblish.api.InstancePlugin, OptionalPyblishPluginMixin
):
    """Increments render path in write node with actual workfile version after
    workfile has been incremented.

    This allows users to manually trigger a local render being sure
    the render output paths are updated.
    """

    order = pyblish.api.IntegratorOrder + 10
    label = "Update path in Write node - Post Version-Up"
    hosts = ["nuke", "nukeassist"]
    families = ["render", "prerender", "image"]

    settings_category = "nuke"
    optional = True
    active = True

    def process(self, instance):
        _process_writes_sync(self, instance)

IncrementWriteNodePathPreSubmit

Bases: InstancePlugin, OptionalPyblishPluginMixin

Increments render path in write node with actual workfile version before potential farm submission.

This allows to send multiple publishes to DL (for all of them Publish part suspended) that wouldn't overwrite renders subfolders.

Ignores artist hardcoded paths and frames, eg Use existing frames where path should stay put.

Source code in client/ayon_nuke/plugins/publish/increment_write_node.py
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
class IncrementWriteNodePathPreSubmit(
    pyblish.api.InstancePlugin, OptionalPyblishPluginMixin
):
    """Increments render path in write node with actual workfile version
    before potential farm submission.

    This allows to send multiple publishes to DL (for all of them Publish part
    suspended) that wouldn't overwrite `renders` subfolders.

    Ignores artist hardcoded paths and `frames`, eg `Use existing frames` where
    path should stay put.

    """

    order = pyblish.api.IntegratorOrder
    label = "Update path in Write node - Pre Submit"
    hosts = ["nuke", "nukeassist"]
    families = ["render", "prerender", "image"]

    settings_category = "nuke"
    optional = True
    active = True

    def process(self, instance):
        _process_writes_sync(self, instance)