From 652c1c0ee663e2bf75112e59d4affcd755b387b9 Mon Sep 17 00:00:00 2001 From: devZoGok Date: Sun, 15 Nov 2020 17:01:47 +0200 Subject: [PATCH] style --- script.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/script.py b/script.py index 2f17186..0a85800 100644 --- a/script.py +++ b/script.py @@ -6,11 +6,11 @@ def exportData(ob): while(par is not None): par = par.parent - file.write('{\n' + ob.type+": "+ob.name+"\n") - file.write("pos: "+str(ob.location.x)+" "+str(ob.location.y)+" "+str(ob.location.z)+"\n") - file.write("rot: "+str(ob.rotation_quaternion.w)+" "+str(ob.rotation_quaternion.x)+" "+str(ob.rotation_quaternion.y)+" "+str(-ob.rotation_quaternion.z)+"\n") - file.write("scale: "+str(ob.scale.x)+" "+str(ob.scale.y)+" "+str(ob.scale.z)+"\n") - file.write("parent: "+('-' if par is None else par.name)+"\n") + file.write('{\n' + ob.type + ": " + ob.name + '\n') + file.write('pos: ' + str(ob.location.x) + ' ' + str(ob.location.y) + ' ' + str(ob.location.z) + '\n') + file.write('rot: ' + str(ob.rotation_quaternion.w) + ' ' + str(ob.rotation_quaternion.x) + ' ' + str(ob.rotation_quaternion.y) + ' ' + str(-ob.rotation_quaternion.z) + '\n') + file.write('scale: ' + str(ob.scale.x) + ' ' + str(ob.scale.y) + ' ' + str(ob.scale.z) + '\n') + file.write('parent: ' + ('-' if par is None else par.name) + '\n') if(ob.type=="ARMATURE"): numAnims=len(ob.animation_data.nla_tracks[0].strips) file.write("bones: "+str(len(ob.data.bones)) + ' ' + str(numAnims) + ' ')