Skip to content

create_plugins

AutoDetectCreateRenderModel

Bases: BaseSettingsModel

The creator tries 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: 'L{group_index}' - Group offset: '10' - Group padding: '3'

Would create group names "L010", "L020", ...

Source code in server/settings/create_plugins.py
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
class AutoDetectCreateRenderModel(BaseSettingsModel):
    """The creator tries 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: 'L{group_index}'
    - Group offset: '10'
    - Group padding: '3'

    Would create group names "L010", "L020", ...
    """

    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(
        1, title="Group index Offset", ge=1
    )
    group_idx_padding: int = SettingsField(
        4, title="Group index Padding", ge=1
    )