-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpreferences.py
28 lines (23 loc) · 994 Bytes
/
preferences.py
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
import bpy
from bpy.types import Operator, AddonPreferences
from bpy.props import StringProperty
class QuickMocapAddonPreferences(AddonPreferences):
# this must match the add-on name, use '__package__'
# when defining this in a submodule of a python package.
bl_idname = 'quickmocap.base'
print("NAMEEEE PREFF ", __package__)
female_model_path: StringProperty(
name="Female SMPL fbx File Path",
subtype='FILE_PATH',
default='C:/temp/mocap/smpl/SMPL_f_unityDoubleBlends_lbs_10_scale5_207_v1.0.0.fbx'
)
male_model_path: StringProperty(
name="Male SMPL fbx File Path",
subtype='FILE_PATH',
default='C:/temp/mocap/smpl/SMPL_m_unityDoubleBlends_lbs_10_scale5_207_v1.0.0.fbx'
)
def draw(self, context):
layout = self.layout
layout.label(text="Set these preferences")
layout.prop(self, "female_model_path")
layout.prop(self, "male_model_path")