forked from NickDickinsonWilde/blender_nif_scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruntest_fo3_animation.py
More file actions
26 lines (22 loc) · 877 Bytes
/
runtest_fo3_animation.py
File metadata and controls
26 lines (22 loc) · 877 Bytes
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
"""Import and export full body (bind pose) nif for Fallout 3."""
import os.path
from nif_test import TestSuite
class Fallout3AnimationTestSuite(TestSuite):
def run(self):
self.make_fo3_fullbody()
fo3_male = os.path.join(
self.config.get("path", "fallout3"),
"meshes", "characters", "_male")
self.test(
filename="test/nif/fo3/_fullbody.nif",
config=dict(
IMPORT_TEXTURE_PATH=[self.config.get("path", "fallout3")],
IMPORT_KEYFRAMEFILE=os.path.join(fo3_male, "h2haim.kf")))
self.test(
filename="test/nif/fo3/_h2haim.kf",
config=dict(
EXPORT_VERSION='Fallout 3',
EXPORT_ANIMATION = 2), # animation only
selection=['Scene Root'])
suite = Fallout3AnimationTestSuite("fo3_animation")
suite.run()