Skip to content

settings

FtrackSettings

Bases: BaseSettingsModel

ftrack addon settings.

Source code in server/settings/main.py
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
class FtrackSettings(BaseSettingsModel):
    """ftrack addon settings."""

    enabled: bool = SettingsField(True)
    ftrack_server: str = SettingsField(
        "",
        title="ftrack server url",
        scope=["studio"],
    )
    service_settings: FtrackServiceSettings = SettingsField(
        default_factory=FtrackServiceSettings,
        title="Service settings",
        scope=["studio"],
    )

    service_event_handlers: FtrackServiceHandlers = SettingsField(
        default_factory=FtrackServiceHandlers,
        title="Server Actions/Events",
    )
    post_launch_hook: PostLaunchHookSettings = SettingsField(
        default_factory=PostLaunchHookSettings,
        title="Status change on application launch"
    )
    user_handlers: FtrackDesktopAppHandlers = SettingsField(
        default_factory=FtrackDesktopAppHandlers,
        title="User Actions/Events",
    )
    publish: FtrackPublishPlugins = SettingsField(
        default_factory=FtrackPublishPlugins,
        title="Publish plugins"
    )
    custom_attributes: CustomAttributesModel = SettingsField(
        title="Custom Attributes",
        default_factory=CustomAttributesModel,
        scope=["studio"],
    )