Skip to content

create_plugins

AutoDetectCreateRenderModel

Bases: BaseSettingsModel

The creator to auto-detect Render Layers and Render Passes in scene.

For Render Layers is used group name as a variant and for Render Passes is used TVPaint layer name.

Group names can be renamed by their used order in scene. The renaming template where can be used '{group_index}' formatting key which is filled by "used position index of group". - Template: 'G{group_index}' - Group offset: '10' - Group padding: '3'

Would create group names "G010", "G020", ...

Source code in server/settings/create_plugins.py
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
class AutoDetectCreateRenderModel(BaseSettingsModel):
    """The creator to auto-detect Render Layers and Render Passes in scene.

    For Render Layers is used group name as a variant and for Render Passes is
    used TVPaint layer name.

    Group names can be renamed by their used order in scene. The renaming
    template where can be used '{group_index}' formatting key which is
    filled by "used position index of group".
    - Template: 'G{group_index}'
    - Group offset: '10'
    - Group padding: '3'

    Would create group names "G010", "G020", ...
    """

    enabled: bool = SettingsField(False)
    allow_group_rename: bool = SettingsField(title="Allow group rename")
    group_name_template: str = SettingsField(title="Group name template")
    group_idx_offset: int = SettingsField(
        10, title="Group index Offset", ge=1
    )
    group_idx_padding: int = SettingsField(
        3, title="Group index Padding", ge=0
    )