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
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 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(True)
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
)
|