Thomas L--Mhx import problems again

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

Thomas L--Mhx import problems again

Postby Shaba1 » Wed Dec 07, 2011 4:55 am

I just tonight download the nightly build for 12/2/2011 but have not installed it yet. I will let you know if it solves the problems. But. I tried and export of a unmodified makehuman figure. Not adjustments to the figures scale or size or poses. Just what you get when you start MH. I am using the last nightly build that I downloaded before tonight 20 oct 2011. Well if use the gui configureation options in the interface and pick the Astock proxy I get a figure that is the full mesh not a proxy. I also one time got just a two tapered cubes and a armature.

Need to find some way of coherently presenting the problems that I am having to you. I think these are either bugs in the program or they my be user errors with me. But in any case what do you need from me in order to figure out what my problems are\?

Thank you in advance.
Shaba1
 
Posts: 165
Joined: Wed Mar 05, 2008 3:21 pm

Re: Thomas L--Mhx import problems again

Postby ThomasL » Thu Dec 08, 2011 3:23 pm

It is strange that you have these problems. The mhx importer has hardly been touched for months, so there is no new code that can complicate things. I tested

I used:
1. Blender 2.60.7 r42505 from graphicall.org
2. MakeHuman svn from Dec. 8
3. Windows 7 64bit

I did:
1. Export character from MH as mhx with config settings. I have no local mh_export.config so the one in the MH folder is used.
2. Import mhx file with the following settings:
Enforce version
Mesh
Armature
Clothes
Face Shapes
Rigify
All other settings are turned off.

The importer works right out of the box. No file copying from MH to Blender, etc.

To debug your problem, I need the debug printout in the console window. You may need to start Blender from a DOS/console window to see the printout. If things still fails, you can mail the mhx file to me for examination. My email address is thomas underscore larsson underscore 01 at hotmail dot com.
ThomasL
 
Posts: 1139
Joined: Tue Sep 15, 2009 2:46 am

Re: Thomas L--Mhx import problems again

Postby Shaba1 » Thu Dec 08, 2011 7:14 pm

Thanks on my phone. I will try it try it out when I get home
Need to download your rev of 2.60a
Shaba1
 
Posts: 165
Joined: Wed Mar 05, 2008 3:21 pm

Re: Thomas L--Mhx import problems again

Postby Shaba1 » Fri Dec 09, 2011 4:14 am

Ok here is the output from the console window that i get using the same rev as you and just the import script in that rev. I exported a basic human with not morps no adjustments to scale not changes to the characture I left all the options in the gui config at thier default.

Code: Select all
Storing defaults
execute flags 4ff6
Opening MHX file C:\Users\DD\Documents\makehuman\exports\testhuman1206-25.mhx
Tokenizing
clearScene 32 <bpy_struct, Scene("Scene")>
Parsing
Parse MHX
MHX (1, 9) (1, 9) False
Parse NoScale
Parse Object
Parse NoScale
Parse Armature
Linked
<bpy_struct, Armature("Testhuman1206")>
Parse Object
Parse NoScale
Parse Image
Loading  C:\Users\DD\Desktop\Blender Files\makehuman12062011\data\textures\textu
re.tif  =  texture.tif
No file C:\Users\DD\makehuman\exports\texture.tif
Found file C:\Users\DD\Desktop\Blender Files\makehuman12062011\data\textures\tex
ture.tif
Image <bpy_struct, Image("texture.tif")>
<bpy_struct, Image("texture.tif")>
Parse Image
Loading  C:\Users\DD\Desktop\Blender Files\makehuman12062011\data\textures\textu
re_ref.tif  =  texture_ref.tif
No file C:\Users\DD\makehuman\exports\texture_ref.tif
Found file C:\Users\DD\Desktop\Blender Files\makehuman12062011\data\textures\tex
ture_ref.tif
Image <bpy_struct, Image("texture_ref.tif")>
<bpy_struct, Image("texture_ref.tif")>
Parse Texture
<bpy_struct, ImageTexture("diffuse")>
Parse Texture
<bpy_struct, ImageTexture("specularity")>
Parse Texture
<bpy_struct, ImageTexture("solid")>
Parse Material
Parse Animation data
<bpy_struct, AnimData at 0x000000000C8948C8>
<bpy_struct, Material("Testhuman1206Skin")>
Parse Material
<bpy_struct, Material("Testhuman1206Mouth")>
Parse Material
<bpy_struct, Material("Testhuman1206Eye")>
Parse Material
<bpy_struct, Material("Testhuman1206Brows")>
Parse Material
Struct done mat.strand
<bpy_struct, Material("Testhuman1206Hair")>
Parse Material
<bpy_struct, Material("Testhuman1206Invisio")>
Parse Mesh
Traceback (most recent call last):
  File "C:\Users\DD\Desktop\Blender Files\Blender2607r42505\2.60\scripts\addons\
io_import_scene_mhx.py", line 2913, in execute
    readMhxFile(self.filepath)
  File "C:\Users\DD\Desktop\Blender Files\Blender2607r42505\2.60\scripts\addons\
io_import_scene_mhx.py", line 355, in readMhxFile
    parse(tokens)
  File "C:\Users\DD\Desktop\Blender Files\Blender2607r42505\2.60\scripts\addons\
io_import_scene_mhx.py", line 460, in parse
    data = parseMesh(val, sub)
  File "C:\Users\DD\Desktop\Blender Files\Blender2607r42505\2.60\scripts\addons\
io_import_scene_mhx.py", line 1312, in parseMesh
    parseVertexGroup(ob, me, val, sub)
  File "C:\Users\DD\Desktop\Blender Files\Blender2607r42505\2.60\scripts\addons\
io_import_scene_mhx.py", line 1478, in parseVertexGroup
    ob.vertex_groups.assign([int(val[0])], group, float(val[1]), 'REPLACE')
AttributeError: 'bpy_prop_collection' object has no attribute 'assign'

location:<unknown location>:-1

location:<unknown location>:-1
Shaba1
 
Posts: 165
Joined: Wed Mar 05, 2008 3:21 pm

Re: Thomas L--Mhx import problems again

Postby ThomasL » Fri Dec 09, 2011 8:32 am

Aha. You need to set the Blender version to Graphicall when importing.

You must incidentally have changed that at some time. The old import settings are saved so you don't have to retype your favorite settings every time you import an mhx file. Unfortunately, this can evidently lead to confusing results if you change a setting by mistake.

Anyway, this version thing has to purpose anymore, since an up-to-date importer is distributed with blender. I will remove it, thus eliminating one cause of confusion.
ThomasL
 
Posts: 1139
Joined: Tue Sep 15, 2009 2:46 am

Re: Thomas L--Mhx import problems again

Postby Shaba1 » Sat Dec 10, 2011 9:18 pm

Thanks Thomas. That did it. Standby for other questions in the future :)
Shaba1
 
Posts: 165
Joined: Wed Mar 05, 2008 3:21 pm


Return to MHX2 and other plugins developed outside MakeHuman

Who is online

Users browsing this forum: No registered users and 3 guests