Page Menu
Home
Search
Configure Global Search
Log In
Files
F6140745
__init__.py
Robert Guetzkow (rjg)
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Robert Guetzkow (rjg)
Jan 1 2019, 4:23 PM
Size
1 KB
Subscribers
None
__init__.py
View Options
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
Details
Attached
Mime Type
text/x-c++
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
fd/fc/19d3bc2172507c2c3f9051d3860a
Attached To
T60037: Single column layout breaks file browser
Event Timeline
Log In to Comment