0 Members and 1 Guest are viewing this topic.
Couldn't get this to run for some reason. Tried loading it into a text view and Alt+P'd it but that doesn't run scripts at present. Also dropped it into scripts/io and had to change the name to "export_md5.py" for it to appear in the export list, but it shows up as a list heading rather than an active script for me.This is with 2.53beta running on Vista.
MD5Version 10commandline "Exported from Blender by export_md5.py by Paul Zirkle"numJoints 0numMeshes 1joints {}mesh { shader "body" numverts 0 numtris 0 numweights 0}
Exporting selected objects...Processing mesh: CubeTraceback (most recent call last): File "C:\Users\[user]\AppData\Roaming\Blender Foundation\Blender\2.54\scripts\io\io_export_md5.py", line 637, in execute save_md5(settings) File "C:\Users\[user]\AppData\Roaming\Blender Foundation\Blender\2.54\scripts\io\io_export_md5.py", line 491, in save_md5 ), matrix))NameError: global name 'matrix' is not defined
matrix = obj.getMatrix('worldspace')def treat_bone(b, parent = None): ... mat = Blender.Mathutils.Matrix(b.matrix['ARMATURESPACE'])*matrix ... bone = Bone( ..., mat, ... ) ...
w_matrix = obj.matrix_worlddef treat_bone(b, parent = None): ... mat = b.matrix_local * w_matrix ... bone = Bone( ..., mat, ... ) ...
"Torso" -1 ( 0.019181 0.011407 7.975472 ) ( -0.707107 -0.000000 -0.000000 ) //2.49"L_Up_Arm" 0 ( 0.019181 0.011407 12.575473 ) ( 0.000000 0.017672 0.707106 ) //2.49"Torso" -1 ( 0.019181 -7.975471 0.011409 ) ( -0.707107 -0.000000 -0.000000 ) //2.54"L_Up_Arm" 0 ( -0.187871 0.180156 12.571256 ) ( 0.000000 0.017672 0.707106 ) //2.54
If I'm understanding what you're saying there would it make any difference to *require* meshes be properly prepped *before* export so the script isn't doing what is effectively unnecessary work?[EDIT]Good job so far. Results of export in the MD5 viewer. Mesh seems to be solid and everything in place, only UVW's are a messed up as per your comments above about that.