Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
d1d5e57f
T
three.js
项目概览
车家大少爷
/
three.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
three.js
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d1d5e57f
编写于
9月 24, 2017
作者:
M
Mr.doob
提交者:
GitHub
9月 24, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #12261 from cg-cnu/blender-exporter-ui
Blender exporter ui
上级
a2ed7c0f
b8780542
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
114 addition
and
98 deletion
+114
-98
utils/exporters/blender/addons/io_three/__init__.py
utils/exporters/blender/addons/io_three/__init__.py
+114
-98
未找到文件。
utils/exporters/blender/addons/io_three/__init__.py
浏览文件 @
d1d5e57f
...
...
@@ -636,14 +636,14 @@ class ExportThree(bpy.types.Operator, ExportHelper):
default
=
constants
.
EXPORT_OPTIONS
[
constants
.
ENABLE_PRECISION
])
option_round_value
=
IntProperty
(
name
=
"
Precision
"
,
name
=
""
,
min
=
0
,
max
=
16
,
description
=
"Floating point precision"
,
default
=
constants
.
EXPORT_OPTIONS
[
constants
.
PRECISION
])
option_custom_properties
=
BoolProperty
(
name
=
"Custom Props"
,
name
=
"Custom Prop
ertie
s"
,
description
=
"Export custom properties as userData"
,
default
=
False
)
...
...
@@ -828,166 +828,182 @@ class ExportThree(bpy.types.Operator, ExportHelper):
layout
=
self
.
layout
## Scene {
box
=
layout
.
box
()
column
=
box
.
column
(
True
)
row
=
column
.
row
(
True
)
row
.
alignment
=
'CENTER'
row
.
label
(
text
=
"SCENE"
,
icon
=
"SCENE_DATA"
)
row
=
box
.
row
()
row
.
prop
(
self
.
properties
,
'option_export_scene'
)
row
.
prop
(
self
.
properties
,
'option_materials'
)
#row = box.row()
#row.prop(self.properties, 'option_embed_geometry')
row
=
box
.
row
()
row
.
prop
(
self
.
properties
,
'option_lights'
)
row
.
prop
(
self
.
properties
,
'option_cameras'
)
row
=
box
.
row
()
row
.
prop
(
self
.
properties
,
'option_hierarchy'
)
## }
layout
.
separator
()
## Geometry {
row
=
layout
.
row
()
row
.
label
(
text
=
"GEOMETRY:"
)
box
=
layout
.
box
()
column
=
box
.
column
(
True
)
row
=
column
.
row
(
True
)
row
.
alignment
=
'CENTER'
row
=
layout
.
row
()
row
.
label
(
text
=
"GEOMETRY"
,
icon
=
"MESH_DATA"
)
row
=
box
.
row
()
row
.
prop
(
self
.
properties
,
'option_geometry_type'
)
row
=
box
.
row
()
row
.
prop
(
self
.
properties
,
'option_index_type'
)
row
=
box
.
row
()
row
.
prop
(
self
.
properties
,
'option_vertices'
)
col
=
row
.
column
()
col
.
prop
(
self
.
properties
,
'option_faces'
)
col
.
enabled
=
using_geometry
row
=
layout
.
row
()
row
=
box
.
row
()
row
.
prop
(
self
.
properties
,
'option_normals'
)
row
.
prop
(
self
.
properties
,
'option_uv_coords'
)
row
=
layout
.
row
()
row
.
prop
(
self
.
properties
,
'option_bones'
)
row
.
prop
(
self
.
properties
,
'option_skinning'
)
row
=
box
.
row
()
row
.
prop
(
self
.
properties
,
'option_apply_modifiers'
)
row
=
layout
.
row
()
row
=
box
.
row
()
row
.
prop
(
self
.
properties
,
'option_extra_vgroups'
)
row
.
enabled
=
not
using_geometry
## }
row
=
layout
.
row
()
row
.
prop
(
self
.
properties
,
'option_apply_modifiers'
)
layout
.
separator
()
row
=
layout
.
row
()
row
.
prop
(
self
.
properties
,
'option_geometry_type'
)
## Materials {
box
=
layout
.
box
()
column
=
box
.
column
(
True
)
row
=
column
.
row
(
True
)
row
.
alignment
=
'CENTER'
row
.
label
(
text
=
"MATERIAL"
,
icon
=
"MATERIAL_DATA"
)
row
=
layout
.
row
()
row
.
prop
(
self
.
properties
,
'option_index_type'
)
row
=
box
.
row
()
row
.
prop
(
self
.
properties
,
'option_colors'
)
row
.
prop
(
self
.
properties
,
'option_mix_colors'
)
row
=
box
.
row
()
row
.
prop
(
self
.
properties
,
'option_face_materials'
)
row
.
enabled
=
using_geometry
## }
layout
.
separator
()
## Materials {
row
=
layout
.
row
()
row
.
label
(
text
=
"- Shading:"
)
## Textures {
box
=
layout
.
box
()
column
=
box
.
column
(
True
)
row
=
column
.
row
(
True
)
row
.
alignment
=
'CENTER'
row
=
layout
.
row
()
row
.
prop
(
self
.
properties
,
'option_face_materials'
)
row
.
enabled
=
using_geometry
row
.
label
(
text
=
"TEXTURE"
,
icon
=
"TEXTURE_DATA"
)
row
=
layout
.
row
()
row
.
prop
(
self
.
properties
,
'option_colors'
)
row
=
box
.
row
()
row
.
prop
(
self
.
properties
,
'option_maps'
)
row
.
prop
(
self
.
properties
,
'option_export_textures'
)
row
=
layout
.
row
()
row
.
prop
(
self
.
properties
,
'option_mix_colors'
)
row
=
box
.
row
()
row
.
prop
(
self
.
properties
,
'option_embed_textures'
)
row
.
enabled
=
self
.
properties
.
option_export_textures
row
=
box
.
row
()
row
.
prop
(
self
.
properties
,
'option_texture_folder'
)
## }
layout
.
separator
()
## Armature {
box
=
layout
.
box
()
column
=
box
.
column
(
True
)
row
=
column
.
row
(
True
)
row
.
alignment
=
'CENTER'
row
.
label
(
text
=
"ARMATURE"
,
icon
=
"ARMATURE_DATA"
)
row
=
box
.
row
()
row
.
prop
(
self
.
properties
,
'option_bones'
)
row
.
prop
(
self
.
properties
,
'option_skinning'
)
## }
layout
.
separator
()
## Animation {
row
=
layout
.
row
()
row
.
label
(
text
=
"- Animation:"
)
box
=
layout
.
box
()
column
=
box
.
column
(
True
)
row
=
column
.
row
(
True
)
row
.
alignment
=
'CENTER'
row
=
layout
.
row
()
row
.
prop
(
self
.
properties
,
'option_animation_morph'
)
row
.
label
(
text
=
"ANIMATION"
,
icon
=
"POSE_DATA"
)
row
=
layout
.
row
()
row
=
box
.
row
()
row
.
prop
(
self
.
properties
,
'option_animation_morph'
)
row
.
prop
(
self
.
properties
,
'option_blend_shape'
)
row
=
layout
.
row
()
row
=
box
.
row
()
row
.
label
(
text
=
"Skeletal animations:"
)
row
=
layout
.
row
()
row
.
prop
(
self
.
properties
,
'option_animation_skeletal'
)
row
=
layout
.
row
()
row
.
label
(
text
=
"Keyframe animations:"
)
row
=
layout
.
row
()
row
=
box
.
row
()
row
.
prop
(
self
.
properties
,
'option_keyframes'
)
layout
.
row
()
row
=
layout
.
row
()
row
=
box
.
row
()
row
.
prop
(
self
.
properties
,
'option_influences'
)
row
=
layout
.
row
()
row
=
box
.
row
()
row
.
prop
(
self
.
properties
,
'option_frame_step'
)
row
=
layout
.
row
()
row
=
box
.
row
()
row
.
prop
(
self
.
properties
,
'option_frame_index_as_time'
)
row
=
layout
.
row
()
row
=
box
.
row
()
row
.
prop
(
self
.
properties
,
'option_embed_animation'
)
## }
layout
.
separator
()
## Scene {
row
=
layout
.
row
()
row
.
label
(
text
=
"SCENE:"
)
row
=
layout
.
row
()
row
.
prop
(
self
.
properties
,
'option_export_scene'
)
row
.
prop
(
self
.
properties
,
'option_materials'
)
#row = layout.row()
#row.prop(self.properties, 'option_embed_geometry')
row
=
layout
.
row
()
row
.
prop
(
self
.
properties
,
'option_lights'
)
row
.
prop
(
self
.
properties
,
'option_cameras'
)
## }
row
=
layout
.
row
()
row
.
prop
(
self
.
properties
,
'option_hierarchy'
)
layout
.
separator
()
## Settings {
row
=
layout
.
row
()
row
.
label
(
text
=
"SETTINGS:"
)
row
=
layout
.
row
()
row
.
prop
(
self
.
properties
,
'option_maps'
)
row
=
layout
.
row
()
row
.
prop
(
self
.
properties
,
'option_export_textures'
)
row
=
layout
.
row
()
row
.
prop
(
self
.
properties
,
'option_embed_textures'
)
row
.
enabled
=
self
.
properties
.
option_export_textures
box
=
layout
.
box
()
column
=
box
.
column
(
True
)
row
=
column
.
row
(
True
)
row
.
alignment
=
'CENTER'
row
=
layout
.
row
()
row
.
prop
(
self
.
properties
,
'option_texture_folder'
)
row
.
label
(
text
=
"SETTINGS"
,
icon
=
"SETTINGS"
)
row
=
layout
.
row
()
row
=
box
.
row
()
row
.
prop
(
self
.
properties
,
'option_scale'
)
layout
.
row
()
row
=
layout
.
row
()
row
=
box
.
row
()
row
.
prop
(
self
.
properties
,
'option_round_off'
)
row
=
layout
.
row
()
row
.
prop
(
self
.
properties
,
'option_round_value'
)
layout
.
row
()
row
=
layout
.
row
()
row
.
label
(
text
=
"Custom Properties"
)
row
=
layout
.
row
()
row
=
box
.
row
()
row
.
prop
(
self
.
properties
,
'option_custom_properties'
)
layout
.
row
()
row
=
layout
.
row
()
row
.
label
(
text
=
"Logging verbosity:"
)
row
=
box
.
row
()
row
.
prop
(
self
.
properties
,
'option_indent'
)
row
=
layout
.
row
()
row
=
box
.
row
()
row
.
label
(
text
=
"Logging verbosity:"
)
row
.
prop
(
self
.
properties
,
'option_logging'
)
row
=
layout
.
row
()
row
=
box
.
row
()
row
.
label
(
text
=
"File compression format:"
)
row
=
layout
.
row
()
row
.
prop
(
self
.
properties
,
'option_compression'
)
row
=
layout
.
row
()
row
.
prop
(
self
.
properties
,
'option_indent'
)
## }
## Operators {
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录