Skip to content

workfile_callbacks

ContextSettings

Bases: BaseSettingsModel

Nuke context settings.

Source code in server/settings/workfile_callbacks.py
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
class ContextSettings(BaseSettingsModel):
    """Nuke context settings."""

    set_resolution: bool = SettingsField(
        default=True,
        title="Resolution from Context",
        description="Set resolution from context on new workfile.",
    )
    set_frame_range: bool = SettingsField(
        default=True,
        title="Frame Range from Context",
        description="Set frame range from context on new workfile.",
    )
    set_colorspace: bool = SettingsField(
        default=True,
        title="Colorspace from Context",
        description="Set colorspace from context on new workfile.",
    )

WorkfileCallbacks

Bases: BaseSettingsModel

Callbacks to apply in Nuke.

Source code in server/settings/workfile_callbacks.py
24
25
26
27
28
29
30
31
32
33
34
35
class WorkfileCallbacks(BaseSettingsModel):
    """Callbacks to apply in Nuke."""
    on_script_create: ContextSettings = SettingsField(
        default_factory=ContextSettings,
        title="On Script Create",
        description="Apply callbacks from AYON context on new workfile",
    )
    on_script_open: ContextSettings = SettingsField(
        default_factory=ContextSettings,
        title="On Script Open",
        description="Apply callbacks from AYON context on loaded workfile.",
    )