1
This commit is contained in:
1 parent
66884a071d
commit
d9769e54fb
2 files changed
+2
-1
No files matched your search
@@ -55,6 +55,7 @@ def reload_obj(pid, action):
|
|||||||
|
|
||||||
def cal_weight(obj, size):
|
def cal_weight(obj, size):
|
||||||
# 统一缩放到9cm标准尺寸
|
# 统一缩放到9cm标准尺寸
|
||||||
|
print(f"obj.dimensions.z === {obj.dimensions.z}")
|
||||||
scale = size / obj.dimensions.z
|
scale = size / obj.dimensions.z
|
||||||
obj.scale = (scale, scale, scale)
|
obj.scale = (scale, scale, scale)
|
||||||
bpy.ops.object.transform_apply(scale=True)
|
bpy.ops.object.transform_apply(scale=True)
|
||||||
@@ -164,7 +165,7 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
sizes = []
|
sizes = []
|
||||||
#根据真实身高计算不同的比例的高度
|
#根据真实身高计算不同的比例的高度
|
||||||
arrBiLie = [["1/4",1/4],["1/6",1/6],["1/8",1/8],["1/10",1/10],["1/12",1/12],["1/16",1/16],["1/18",1/18],["1/24",1/24],["1/32",1/32],["1/43",1/43],["1/64",1/64]]
|
arrBiLie = [["1/4",1/4],["1/6",1/6],["1/8",1/8],["1/10",1/10],["1/12",1/12],["1/14",1/14],["1/16",1/16],["1/18",1/18],["1/24",1/24],["1/32",1/32],["1/43",1/43],["1/64",1/64]]
|
||||||
for biLieV in arrBiLie:
|
for biLieV in arrBiLie:
|
||||||
biLie = biLieV[1]
|
biLie = biLieV[1]
|
||||||
if biLie == 1/43:
|
if biLie == 1/43:
|
||||||
|
|||||||
Binary file not shown.
Reference in new issue
Block a user