jasongzy commited on
Commit
d688437
·
1 Parent(s): f831d12

✨ feat: upload character_rabit

Browse files
character_rabit/100.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0827cbc573aaf2e060050f6344db7b3c60cb8d5f3a6dc732b93c143f7b16efc4
3
+ size 3002976
character_rabit/1020.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c24a800bd80d590cfa4d1efd68d5c526b48710c2707e8f8cd80cbb19908b6466
3
+ size 2653584
character_rabit/1033.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8fe161c599d666169f11ce8f84a8a9825892f5c0b7b39c3c9e82caefcc6ace8f
3
+ size 2964512
character_rabit/106.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c8c97063bfa6bf25935f3751cf34ff44c2c59ad2b926d4525ef72a64c424b95f
3
+ size 2662816
character_rabit/1091.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ae00b2c14057ea9d156baf24c9e0549b4da1cbd6ecfdd198e6657b83fc5245e
3
+ size 2647520
character_rabit/1096.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c019d27cbf1237d13e34af9decd7c1cd348c53c19512ab36bffdbc416285eaa2
3
+ size 2697760
character_rabit/1108.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:880183e7e59ae251b29f68e2b772d733c610bbb738334a85a887d3d82652915c
3
+ size 2634608
character_rabit/1132.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb6fa3685c61e7389c4725687c0ab7acc39ba6563f80c7766fa975cf07a3baf6
3
+ size 2685584
character_rabit/1145.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7688157355153140b48b0f900ee6914a0410f3157bc309aac8f6d1cc8ec415a0
3
+ size 2598544
character_rabit/1165.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:193e03a07af966ce15ba7fe085ddb9e34faa5d12fe93659f2d77cebf9062a8a6
3
+ size 2702624
character_rabit/1190.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fb918460e0ba71a906daf19c499fd467273c83514a9e4ce0ffd83582b28823f5
3
+ size 2648288
character_rabit/1250.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0a3b4bc1fce922b83e2bd86779cbf99a59f9da521c5fc30e8f3f4c0f9192583
3
+ size 2638352
character_rabit/13.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c83e5ae5da60709ba5a62b3270471653af715ba94475020e6fb03e852edf8c53
3
+ size 2634016
character_rabit/130.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:640054f0454a64cc2b4ea334e168311dd9267efdd466123fc384c7f116a41877
3
+ size 2584064
character_rabit/131.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6a61ecfd0b5b4b6a78fe62300ecc984b562688e7aa20156c3df564eaf6bdfe99
3
+ size 3017552
character_rabit/1318.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f69e2b0622fc302419b294d201ac9b4f4274a9d104d6b1ba1bd9bf87a5d92c5
3
+ size 2646368
character_rabit/1353.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bdb9d8f2a1d475fda58725057d5bf1e5c296edb426a3a123ebb73a441afded07
3
+ size 2679408
character_rabit/1375.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b53f74705fa4b93b0bf5b657699a6408e6e6185775c03328c097c0edebc32b2
3
+ size 2816048
character_rabit/139.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:240d761fd2851c40e388339e92b6e822d740d731958affd6b645899befd861a3
3
+ size 2710288
character_rabit/1390.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38716e56cffc598ae1fd814c27cd410efd6136901cebc92100517061a5d7b5eb
3
+ size 2671472
character_rabit_refined/100.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7dfc96c15b14925c05558ef02861ccdcbed811155945bf254a1018abe0d605c9
3
+ size 5157788
character_rabit_refined/1020.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11605aa6f8e9e4be2a7f92f101c402bd40e69c9d6400f3bbebf0aa1776345e33
3
+ size 4917484
character_rabit_refined/1033.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4bd98e4de0e1fc7eb5324d9755e374ae41a85cd89a27bbe3e6de3b7d8806f245
3
+ size 5146812
character_rabit_refined/106.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8a4507d95cf98d0b5c5170fea32b581c7b17a286fed6aba289759d7c4c26d546
3
+ size 4955996
character_rabit_refined/1091.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:571095085ae9b849a12ef8c8090006279b6d35b49a36e175cbb1b1ebadad92f0
3
+ size 4734604
character_rabit_refined/1096.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cde991c68131689e2e53f22b075c29243b1f2e4e7c2ce9230f2ac1d6a43495d6
3
+ size 4789804
character_rabit_refined/1108.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:35d70e75247de4adee879ccccfb1d76c91f0c68d35f91a72d2f465f943657215
3
+ size 4744348
character_rabit_refined/1132.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eee20a3ef46e4c009138e085379ef812a31d809901ed89e7ed54a98df3e7894d
3
+ size 4946348
character_rabit_refined/1145.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c013030688c134baabffcb188255a3bdb91fb9869dd31744b1a1fc240578c13c
3
+ size 4873868
character_rabit_refined/1165.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92cf04e113926eadfb1f29d5ea590cb713df1838e3ee4dbf71c49896a37787fb
3
+ size 4960156
character_rabit_refined/1190.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b37ff2a8d7d2e07303aa83657063c37671ec02525f5992d4817008033a0478af
3
+ size 4753724
character_rabit_refined/1250.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:58a5d66c94ed466f2f895626c9f66c25e239cfa3e9b38fd42c80c284a76d73d5
3
+ size 4913708
character_rabit_refined/13.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ed9bee6a61c8f210316817330c85d0955ad78232775cb7c3ed0282ed1939ce5
3
+ size 4768844
character_rabit_refined/130.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9589b8f74a5a7612bbe2e558b92b4ce7dd44eae59a6a8d3f687c62ed2abe9ead
3
+ size 4684684
character_rabit_refined/131.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d4c2427b304f6bd8a3cd9143f7c4d8ba4b452f5218a8f9f6877b6c153c8cb03e
3
+ size 5201148
character_rabit_refined/1318.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ee494501bcb59e7b2b8075e9663d6e00806992d23fa4f145acdf535da8b7b95
3
+ size 4734140
character_rabit_refined/1353.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:48f2ad7039713cf2b3b6ba8225c41297a715968e1356565d33daf14964bfa087
3
+ size 4849404
character_rabit_refined/1375.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:247f2c3529036849f582c0ee9797dab9d3f9c01673f843bb89a434149536d1b7
3
+ size 4978204
character_rabit_refined/139.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:719081a1e632fbf60409c6ca43175c355bc8a224043e8ff5e0a3f3e315df0e2c
3
+ size 5000076
character_rabit_refined/1390.fbx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:801916b60144613be786f3d721b5f693c51972ffd89aa378a8e8042ea5ad4f89
3
+ size 4953612
character_refine_rabit.py ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ from glob import glob
3
+
4
+ import bpy
5
+ from tqdm import tqdm
6
+
7
+ from utils import HiddenPrints, get_all_armature_obj, get_all_mesh_obj, load_file, remove_all, select_objs, update
8
+
9
+
10
+ def rename_mixamo_bone(armature_obj):
11
+ """Replace name like 'mixamorig10:xxx' to 'mixamorig:xxx, so that character can be correctly animated.'"""
12
+ import re
13
+
14
+ pattern = re.compile(r"mixamorig[0-9]+:")
15
+ for bone in armature_obj.data.bones:
16
+ bone.name = re.sub(pattern, "mixamorig:", bone.name)
17
+ return armature_obj
18
+
19
+
20
+ if __name__ == "__main__":
21
+ input_dir = "character_rabit"
22
+ output_dir = "character_rabit_refined"
23
+ os.makedirs(output_dir, exist_ok=True)
24
+ character_list = sorted(glob(os.path.join(input_dir, "*.fbx")))
25
+
26
+ for file in tqdm(character_list, dynamic_ncols=True):
27
+ with HiddenPrints():
28
+ remove_all()
29
+ obj_list = load_file(file)
30
+ assert len(get_all_armature_obj(obj_list)) == 1, "Armature number is not 1"
31
+ bpy.ops.wm.save_as_mainfile(filepath="test.blend")
32
+
33
+ select_objs(get_all_mesh_obj(obj_list), deselect_first=True)
34
+ bpy.ops.object.transform_apply(location=True, rotation=True, scale=True)
35
+
36
+ update()
37
+ select_objs(obj_list, deselect_first=True)
38
+ bpy.ops.export_scene.fbx(
39
+ filepath=os.path.join(output_dir, os.path.basename(file)),
40
+ check_existing=False,
41
+ use_selection=True,
42
+ use_triangles=True, # !
43
+ add_leaf_bones=False,
44
+ bake_anim=False,
45
+ # path_mode="COPY",
46
+ # embed_textures=True,
47
+ )