Setting Nuke default render target

Hello! Quick question from me today,

The nuke render, prerender and image publish types don’t seem to have any option to configure global defaults for the render target. Is this something that already exists somewhere?
In our case, we’d like “Farm Rendering” to be the default - it’s not difficult to manually set, but we barely ever use “local machine rendering” for these, and in nuke templates with many prerenders, setting this can be time consuming.

1 Like

I don’t think this is configurable, unfortunately.

Enum, you highlighted, is formed in ayon-nuke/client/ayon_nuke/api/plugin.py:355, so if you would really need to have this one, you would need to resort it there and create your own version of addon.

image

2 Likes

As kališ mentioned:

you’d need to modify the following lines and add default argument.

maybe

    def _get_render_target_enum(self):
        rendering_targets = {
            "local": "Local machine rendering",
            "frames": "Use existing frames"
        }
        default_target = "local"

        if ("farm_rendering" in self.instance_attributes):
            rendering_targets["frames_farm"] = "Use existing frames - farm"
            rendering_targets["farm"] = "Farm rendering"
            default_target = "farm"

        return EnumDef(
            "render_target",
            items=rendering_targets,
            label="Render target",
            default=default_target
        )

Alternatively, feel free to submit an issue for it to expose the default render target to settings.

1 Like

it would be nice for all apps plugins to have it in settings)