Makewalk broken after bvh update

Discussions about MHX2 and other plugins that are developed outside the scope of MakeHuman. Note that bug reports should go to the respective code projects and might go unseen here.

Moderator: joepal

Makewalk broken after bvh update

Postby Shaba1 » Thu Dec 19, 2013 11:42 pm

ThomasL I voiced the vitues of your addon too soon.

I just did and svn update of MH yesterday December 18th at about 1600 PST.

I update MH at least once a week. But I had to replaced the Makewalk,MakeTarget ,MHX importer or MakeClothes folders in the blender addon subfolder for quiet some time. So I decided to copy those folders from the Makehuman installation/tools/blender/ folder to the blender addon folder just to be sure I was up to date. I did this after my svn update yesterday. Now non of the makewalk script work with my characters. I have not change any thing in the characters or armature imports from makehuman or in the bvh files that I am trying to retarget. Both the characters and the bvh file successfully retargeted automatically before I did the update and copied over the folder. Now here is what I am getting in the blender console.

First here is my blender setup

Window 7 64bit Home Premium

Blender version 2.69 r60996
Makewalk version 0.937

Here is the console output:


Loading maketarget
Found My Documents folder: C:\Users\DD\Documents
Warning: addon-module 'maketarget' found module but without __addon_enabled__ f
eld, possible name collision from file: 'C:\\Users\\DD\\Desktop\\Blender Files\
blender2.69\\2.69\\scripts\\addons\\maketarget\\__ init__.py'
module changed on disk: C:\Users\DD\Desktop\Blender Files\blender2.69\2.69\scri
ts\addons\maketarget\__init__.py reloading...
Reloading maketarget v 1.30
Found My Documents folder: C:\Users\DD\Documents
Loading MakeWalk
['center_default.blend', 'default.blend', 'star_wars.blend']
archimesh: added to phytonpath
archimesh: Imported multifiles
sverchok_nodes: added to phytonpath :-)
Traceback (most recent call last):
File "C:\Users\DD\AppData\Roaming\Blender Foundation\Blender\2.69\scripts\add
ns\object_destruction\__init__.py", line 130, in load_handler
if hasattr(bpy.context.object, "destEnabled"):
AttributeError: 'Context' object has no attribute 'object'
<!> event has invalid window
Storing defaults
execute flags 603
Opening MHX file b'C:\\Users\\DD\\Desktop\\Blender Files\\Test black amazon.mhx
Toggle 603
Tokenizing
Parsing
MHX (1, 16) (1, 16) False
Loading b'C:\\Users\\DD\\Desktop\\Blender Files\\textures\\brown-female-young.p
g'
Image <bpy_struct, Image("brown-female-young.png")>
Loading b'C:\\Users\\DD\\Desktop\\Blender Files\\textures\\texture_ref.png'
Image <bpy_struct, Image("texture_ref.png")>
Loading b'C:\\Users\\DD\\Desktop\\Blender Files\\textures\\bump.png'
Image <bpy_struct, Image("bump.png")>
Loading b'C:\\Users\\DD\\Desktop\\Blender Files\\textures\\mono_white.png'
Image <bpy_struct, Image("mono_white.png")>
Loading b'C:\\Users\\DD\\Desktop\\Blender Files\\textures\\mono_pink.png'
Image <bpy_struct, Image("mono_pink.png")>
Loading b'C:\\Users\\DD\\Desktop\\Blender Files\\textures\\mono_white.png'
Image <bpy_struct, Image("mono_white.png")>
Loading b'C:\\Users\\DD\\Desktop\\Blender Files\\textures\\long_texture.png'
Image <bpy_struct, Image("long_texture.png")>
Loading b'C:\\Users\\DD\\Desktop\\Blender Files\\textures\\green_eye.png'
Image <bpy_struct, Image("green_eye.png")>
CorrectRig test_black_amazon
Postprocess test_black_amazonMesh
<bpy_struct, Object("test_black_amazon")> ARMATURE None None
<bpy_struct, Object("test_black_amazonascottkMesh")> MESH <bpy_struct, Object("
est_black_amazon")> <bpy_struct, Object("test_black_amazon")>
<bpy_struct, Object("test_black_amazonEve_PantiesMesh")> MESH <bpy_struct, Obje
t("test_black_amazon")> <bpy_struct, Object("test_black_amazon")>
<bpy_struct, Object("test_black_amazonEve_Tank_TopMesh")> MESH <bpy_struct, Obj
ct("test_black_amazon")> <bpy_struct, Object("test_black_amazon")>
<bpy_struct, Object("test_black_amazonEve_BraMesh")> MESH <bpy_struct, Object("
est_black_amazon")> <bpy_struct, Object("test_black_amazon")>
<bpy_struct, Object("test_black_amazonlongMesh")> MESH <bpy_struct, Object("tes
_black_amazon")> <bpy_struct, Object("test_black_amazon")>
<bpy_struct, Object("test_black_amazonHighPolyEyesMesh")> MESH <bpy_struct, Obj
ct("test_black_amazon")> <bpy_struct, Object("test_black_amazon")>
<bpy_struct, Object("CustomShapes")> EMPTY <bpy_struct, Object("test_black_amaz
n")> None
SSS
File C:\Users\DD\Desktop\Blender Files\Test black amazon.mhx loaded in 5.11428
Storing defaults
Load and retarget C:\Users\DD\Desktop\Blender Files\bvh zips\=V= AN 08 bj f.bvh
Loading BVH file C:\Users\DD\Desktop\Blender Files\bvh zips\=V= AN 08 bj f.bvh
0 pct)
Reading skeleton
Reading motion
200 (30.3 pct)
Bvh file C:\Users\DD\Desktop\Blender Files\bvh zips\=V= AN 08 bj f.bvh loaded i
1.317 s (100 pct)
File =V= AN 08 bj f 14
Name Y_=V= AN 08 bj f
Read target file C:\Users\DD\Desktop\Blender Files\blender2.69\2.69\scripts\add
ns\makewalk\target_rigs\mh-alpha7.trg
Read target file C:\Users\DD\Desktop\Blender Files\blender2.69\2.69\scripts\add
ns\makewalk\target_rigs\mhx.trg
Read target file C:\Users\DD\Desktop\Blender Files\blender2.69\2.69\scripts\add
ns\makewalk\target_rigs\rigify.trg
Defined McpTargetRig
Guessing target
Testing MHX
Traceback (most recent call last):
File "C:\Users\DD\Desktop\Blender Files\blender2.69\2.69\scripts\addons\makew
lk\retarget.py", line 522, in execute
loadRetargetSimplify(context, self.properties.filepath)
File "C:\Users\DD\Desktop\Blender Files\blender2.69\2.69\scripts\addons\makew
lk\retarget.py", line 468, in loadRetargetSimplify
load.renameAndRescaleBvh(context, srcRig, trgRig)
File "C:\Users\DD\Desktop\Blender Files\blender2.69\2.69\scripts\addons\makew
lk\load.py", line 525, in renameAndRescaleBvh
target.getTargetArmature(trgRig, scn)
File "C:\Users\DD\Desktop\Blender Files\blender2.69\2.69\scripts\addons\makew
lk\target.py", line 81, in getTargetArmature
if not testTargetRig(name, rig, boneAssoc):
File "C:\Users\DD\Desktop\Blender Files\blender2.69\2.69\scripts\addons\makew
lk\target.py", line 126, in testTargetRig
pb = rig.pose.bones[bname]
KeyError: 'bpy_prop_collection[key]: key "clavicle.L" not found'



As I said I am using the same mhx files and the same bvh files. as I did before I updated and copied and every thing was working perfectly with every bvh I tired. Now nothing is working.
Shaba1
 
Posts: 165
Joined: Wed Mar 05, 2008 3:21 pm

Re: Makewalk broken after bvh update

Postby duststorm » Thu Dec 19, 2013 11:57 pm

It's possible your MHX file is no longer compatible with the latest version of the scripts.
Try exporting a new MHX file and importing it in blender.
MakeHuman™ developer
User avatar
duststorm
 
Posts: 2569
Joined: Fri Jan 27, 2012 11:57 am
Location: Belgium

Re: Makewalk broken after bvh update

Postby ThomasL » Fri Dec 20, 2013 1:27 pm

The shoulder bones changed names from shoulder, deltoid => clavicle, deltoid several months ago. Hence it seems like you have an old mhx file that does not match the modern target_rigs/mhx.trg file. However, it is a bug that I try to catch a NameError on line 127 since a KeyError is raised.
ThomasL
 
Posts: 1139
Joined: Tue Sep 15, 2009 2:46 am

Re: Makewalk broken after bvh update

Postby Shaba1 » Fri Dec 20, 2013 7:46 pm

ThomasL wrote:The shoulder bones changed names from shoulder, deltoid => clavicle, deltoid several months ago. Hence it seems like you have an old mhx file that does not match the modern target_rigs/mhx.trg file. However, it is a bug that I try to catch a NameError on line 127 since a KeyError is raised.



Thanks ThomasL. After reading your docs page on retargeting rigs I determined that it must be because I was using older MHM files. these all were just test meshs so its not like I am going to lose anything by just remaking them in MH. It would have been nice if MH automatically updated them when I opened them again but no big deal. the only real problem I am going to run into with these test is finding A8 compatible African and Asian skin
Shaba1
 
Posts: 165
Joined: Wed Mar 05, 2008 3:21 pm

Re: Makewalk broken after bvh update

Postby duststorm » Sat Dec 21, 2013 1:44 am

Shaba1 wrote:I determined that it must be because I was using older MHM files.

You probably mean MHX files. To avoid further confusion.
MakeHuman™ developer
User avatar
duststorm
 
Posts: 2569
Joined: Fri Jan 27, 2012 11:57 am
Location: Belgium


Return to MHX2 and other plugins developed outside MakeHuman

Who is online

Users browsing this forum: No registered users and 1 guest