1 # SPDX-License-Identifier: GPL-2.0-or-later
4 from bpy
.props
import (
11 ########################################################################################################################
12 # Global properties for the script, for UI (as there’s no way to let them in the operator…).
13 ########################################################################################################################
15 class RenderCopySettingsDataScene(bpy
.types
.PropertyGroup
):
16 allowed
: BoolProperty(default
=True)
19 class RenderCopySettingsDataSetting(bpy
.types
.PropertyGroup
):
20 strid
: StringProperty(default
="")
21 copy
: BoolProperty(default
=False)
24 class RenderCopySettingsData(bpy
.types
.PropertyGroup
):
25 # XXX: The consistency of this collection is delegated to the UI code.
26 # It should only contain one element for each render setting.
27 affected_settings
: CollectionProperty(type=RenderCopySettingsDataSetting
,
28 name
="Affected Settings",
29 description
="The list of all available render settings")
30 # XXX Unused, but needed for template_list…
31 affected_settings_idx
: IntProperty()
33 # XXX: The consistency of this collection is delegated to the UI code.
34 # It should only contain one element for each scene.
35 allowed_scenes
: CollectionProperty(type=RenderCopySettingsDataScene
,
36 name
="Allowed Scenes",
37 description
="The list all scenes in the file")
38 # XXX Unused, but needed for template_list…
39 allowed_scenes_idx
: IntProperty()
41 filter_scene
: StringProperty(name
="Filter Scene",
42 description
="Regex to only affect scenes which name matches it",
47 RenderCopySettingsDataScene
,
48 RenderCopySettingsDataSetting
,
49 RenderCopySettingsData
,