Skinify: fix shape generation
[blender-addons.git] / render_copy_settings / data.py
blobd3942d205cf4340aa372170f9d217d604b42c4e0
1 # SPDX-License-Identifier: GPL-2.0-or-later
3 import bpy
4 from bpy.props import (
5 StringProperty,
6 BoolProperty,
7 IntProperty,
8 CollectionProperty,
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",
43 default="")
46 classes = (
47 RenderCopySettingsDataScene,
48 RenderCopySettingsDataSetting,
49 RenderCopySettingsData,