Page MenuHome

__init__.py

bl_info = {
"name": "Hair Sample Render",
"author": "Robert Gützkow",
"version": (0, 0, 0),
"blender": (2, 80, 0),
"location": "Render engine menu",
"description": "Create and render hair samples (including image intrinsics) to create a dataset for deep learning.",
"category": "Render",
}
import bpy
class HairSampleProperties(bpy.types.PropertyGroup):
output_path: bpy.props.StringProperty(
name="Output directory",
description="Path to directory where images are saved.",
default="",
maxlen=1024,
subtype="DIR_PATH")
class HAIR_SAMPLE_RENDER_PT_settings(bpy.types.Panel):
bl_label = "Hair Sample Rendering"
bl_space_type = "PROPERTIES"
bl_region_type = "WINDOW"
bl_context = "render"
def draw(self, context):
layout = self.layout
layout.use_property_split = True
layout.prop(context.scene.hair_sample_render_settings, "output_path")
def register():
bpy.utils.register_class(HairSampleProperties)
bpy.types.Scene.hair_sample_render_settings = bpy.props.PointerProperty(
name="Hair sample render settings",
description="Hair sample render settings",
type=HairSampleProperties)
bpy.utils.register_class(HAIR_SAMPLE_RENDER_PT_settings)
def unregister():
bpy.utils.unregister_class(HAIR_SAMPLE_RENDER_PT_settings)
del(bpy.types.Scene.hair_sample_render_settings)
bpy.utils.unregister_class(HairSampleProperties)
if __name__ == "__main__":
register()

File Metadata

Mime Type
text/x-c++
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
fd/fc/19d3bc2172507c2c3f9051d3860a

Event Timeline