Node Wrangler: Add more specific poll methods
[blender-addons.git] / render_copy_settings / presets.py
blobb2d041288770d333148decf8d485e17f3d5c30f4
1 # SPDX-FileCopyrightText: 2011-2022 Blender Foundation
3 # SPDX-License-Identifier: GPL-2.0-or-later
6 class CopyPreset(object):
7 def __init__(self, ui_name, rna_enum, elements):
8 self.ui_name = ui_name
9 self.rna_enum = rna_enum
10 self.elements = elements
13 presets = (CopyPreset("Resolution",
14 ("resolution", "Render Resolution", "Render resolution and aspect ratio settings"),
15 {"resolution_x", "resolution_y", "pixel_aspect_x", "pixel_aspect_y"}),
16 CopyPreset("Scale",
17 ("scale", "Render Scale", "The “Render Scale” setting"),
18 {"resolution_percentage"}),
19 CopyPreset("Threads",
20 ("threads", "Render Threads", "The thread mode and number settings"),
21 {"threads_mode", "threads"}),
22 CopyPreset("Stamp",
23 ("stamp", "Render Stamp", "The Stamp toggle"),
24 {"use_stamp"})