This repository was archived by the owner on Nov 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathprefs.py
More file actions
71 lines (61 loc) · 2.32 KB
/
prefs.py
File metadata and controls
71 lines (61 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import bpy
import os
from bpy.props import (
StringProperty,
BoolProperty,
)
class UE4_AP_AddonPreferences(bpy.types.AddonPreferences):
bl_idname = __package__
skeletonRootBoneName: StringProperty(
name='Skeleton root bone name',
description='Name of the armature when exported.',
default="Armature",
)
static_prefix_export_name: bpy.props.StringProperty(
name = "StaticMesh Prefix",
description = "Prefix of staticMesh",
maxlen = 32,
default = "SM_")
skeletal_prefix_export_name: bpy.props.StringProperty(
name = "SkeletalMesh Prefix ",
description = "Prefix of SkeletalMesh",
maxlen = 32,
default = "SK_")
anim_prefix_export_name: bpy.props.StringProperty(
name = "AnimationSequence Prefix",
description = "Prefix of AnimationSequence",
maxlen = 32,
default = "Anim_")
pose_prefix_export_name: bpy.props.StringProperty(
name = "AnimationSequence(Pose) Prefix",
description = "Prefix of AnimationSequence with only one frame",
maxlen = 32,
default = "Pose_")
anim_subfolder_name: bpy.props.StringProperty(
name = "Animations sub folder name",
description = "name of sub folder for animations",
maxlen = 32,
default = "Anim")
export_static_file_path: bpy.props.StringProperty(
name = "StaticMesh export file path",
description = "Choose a directory to export StaticMesh(s)",
maxlen = 512,
default = os.path.join("//","ExportedFbx","StaticMesh"),
subtype = 'DIR_PATH')
export_skeletal_file_path: bpy.props.StringProperty(
name = "SkeletalMesh export file path",
description = "Choose a directory to export SkeletalMesh(s)",
maxlen = 512,
default = os.path.join("//","ExportedFbx","SkeletalMesh"),
subtype = 'DIR_PATH')
def draw(self, context):
layout = self.layout
col = layout.column()
col.prop(self, 'skeletonRootBoneName')
col.prop(self, 'static_prefix_export_name', icon='OBJECT_DATA')
col.prop(self, 'skeletal_prefix_export_name', icon='OBJECT_DATA')
col.prop(self, 'anim_prefix_export_name', icon='OBJECT_DATA')
col.prop(self, 'pose_prefix_export_name', icon='OBJECT_DATA')
col.prop(self, 'export_static_file_path',icon='FILE_FOLDER')
col.prop(self, 'export_skeletal_file_path',icon='FILE_FOLDER')
#col.prop(self, 'anim_subfolder_name',icon='FILE_FOLDER')