2025-12-01
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
# SPDX-FileCopyrightText: 2021 Blender Studio Tools Authors
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
import bpy
|
||||
|
||||
|
||||
class LOOKDEV_property_group_scene(bpy.types.PropertyGroup):
|
||||
""""""
|
||||
|
||||
# Render settings.
|
||||
preset_file: bpy.props.StringProperty( # type: ignore
|
||||
name="Render Settings File",
|
||||
description="Path to file that is the active render settings preset",
|
||||
default="",
|
||||
subtype="FILE_PATH",
|
||||
)
|
||||
|
||||
|
||||
# ----------------REGISTER--------------.
|
||||
|
||||
classes = [
|
||||
LOOKDEV_property_group_scene,
|
||||
]
|
||||
|
||||
|
||||
def register():
|
||||
|
||||
for cls in classes:
|
||||
bpy.utils.register_class(cls)
|
||||
|
||||
# Scene Properties.
|
||||
bpy.types.Scene.lookdev = bpy.props.PointerProperty(
|
||||
name="Render Preset",
|
||||
type=LOOKDEV_property_group_scene,
|
||||
description="Metadata that is required for lookdev",
|
||||
)
|
||||
|
||||
|
||||
def unregister():
|
||||
for cls in reversed(classes):
|
||||
bpy.utils.unregister_class(cls)
|
||||
Reference in New Issue
Block a user