Problems importing MHX to Blender

Tech support and suggestions forum. If you only have a basic question on how to get started, please use the "newbies" forum in the community section.

Moderator: joepal

Problems importing MHX to Blender

Postby TheXtreme76 » Fri Jun 11, 2010 8:09 pm

hi, I use MH 1.0 alpha 5 and Blender 2.5 alpha 2. I'm having problems importing MHX files into Blender. I installed the addon from blenderartists.org. The addon file came with a couple example MHX files. Blender imports them fine. but when I create a new file in MH, nothing happens, and I get the message:

found bundled python: C:\PRGRA~1\Blender2.5\BLENDE~1.5-A\.blender\python
RNA_string_set: IMPORT_SCENE_OT_makehuman_mhx.filename not found.
RNA_string_set: IMPORT_SCENE_OT_makehuman_mhx.directory not found.
Opening MHX file C:\Users\X(my name)\Documents\makehuman\exports\man-25.mhx
Tokenizing
clearScene 32<bpy_struct Scene("Scene")>
Parsing
Loading C:\Program Files\makehuman\data\textures\texture.tif = texture.tif
No file C:\Users\X(my name)\makehuman\exports\texture.png
No file C:\Users\X(my name)\makehuman\exports\texture.tif
No file C:\Program Files\Makehuman\data\textures\texture.png
found file C:\Program Files\Makehuman\data\textures\texture.tif
Image <bpy_struct, image()"texture.tif")>
<bpy_struct, Image(texture.tif")>
Loading C:\Program Files\Makehuman\data\textures\texture_ref.tif = texture_ref.tif
No file C:\Users\X(my name)\makehuman\exports\texture_ref.png
No file C:\Users\X(my name)\makehuman\exports\texture_ref.tif
No file C:\Program Files\Makehuman\data\textures\texture_ref.png
found file C:\Program Files\Makehuman\data\textures\texture_ref.tif
Image <bpy_struct, image("texture_ref.tif")>
<bpy_struct, Image("texture_ref.tif")>
RECASTING<bpy_struct, CloudsTexture("diffuse")> IMAGE
RECAST OK<bpy_struct, ImageTexture("diffuse")> IMAGE
TEX Image ['texture.tif']
<bpy_struct, ImageTexture("diffuse")>
RECASTING<bpy_struct, CloudsTexture("specularity")> IMAGE
RECAST OK<bpy_struct, ImageTexture("specularity")> IMAGE
TEX Image ['texture_ref.tif']
<bpy_struct, ImageTexture("specularity")>
RECASTING<bpy_struct, CloudsTexture("normals")> CLOUDS
RECAST OK<bpy_struct, CloudsTexture("normals")> CLOUDS
TEX brightness ['1']
TEX contrast ['1']
TEX factor_blue ['1']
TEX factor_green ['1']
TEX factor_red ['1']
TEX nabla ['0.025']
TEX noise_basis ["'BLENDER_ORIGNAL'"]
TEX noise_depth ['2']
TEX noise_size ['0.05001']
TEX noise_depth ["'SOFT_NOISE'"]
TEX stype ["'GREYSCALE"]
TEX use_color_ramp ['False']
TEX use_preview_alpha ['False']
<bpy_struct, CloudsTexture("normals")>
Traceback (most recent call last):
File "C:PROGRA~1\Blender2.5\BLENDE~1.5-A\.blender\scripts\addons\import_scene_mhx.py", line 1756, in execute
readMhxFile(self.properties.path)
File "C:PROGRA~1\Blender2.5\BLENDE~1.5-A\.blender\scripts\addons\import_scene_mhx.py", line 247, in readMhxFile
parse(tokens)
File "C:PROGRA~1\Blender2.5\BLENDE~1.5-A\.blender\scripts\addons\import_scene_mhx.py", line 338, in parse
data = parseMaterial(val, sub)
File "C:PROGRA~1\Blender2.5\BLENDE~1.5-A\.blender\scripts\addons\import_scene_mhx.py", line 553, in parseMaterial
defaultKey(key, val, sub, 'mat', ['specular_intensity', 'tangent_shading']), globals(), locals()>
File "C:PROGRA~1\Blender2.5\BLENDE~1.5-A\.blender\scripts\addons\import_scene_mhx.py", line 1535, in defaultKey
raise NameError("Key length0: %s" % ext)
NameError: key length0: SSS

Please help...
There's also a problem when trying to import obj files from MH into Blender. the mess looks almost normal, everything where it should be, but the mesh is actually broken into small segments. Has there been a fix for this?

Thanks,
Michael
TheXtreme76
 
Posts: 5
Joined: Tue Jun 08, 2010 7:05 pm

Re: Problems importing MHX to Blender

Postby mflerackers » Sat Jun 12, 2010 12:30 am

if you don't want groups in the obj mesh, uncheck the groups button when exporting.
MakeHuman project Developer
mflerackers
 
Posts: 636
Joined: Thu Feb 05, 2009 11:53 am
Location: Kyoto

Re: Problems importing MHX to Blender

Postby ThomasL » Sat Jun 12, 2010 7:12 am

Sounds like a compatibility problem. Both Blender and MH are alpha software which change continuously. Try to download the most recent nightly build of MH and a recent Blender build from www.graphicall.org.

Blender's obj importer can either create a single mesh or separate objects for different groups. Turn off the group (or maybe polygroup) option when importing into Blender
ThomasL
 
Posts: 1139
Joined: Tue Sep 15, 2009 2:46 am

Re: Problems importing MHX to Blender

Postby jcapco » Thu Jun 17, 2010 6:27 am

Blender .obj importer has some bugs and problems when importing curves. I am modifying the obj importer for Blender 2.49b and 2.5 so it would work with nurbs. Unfortunately I am puzzled by a few things. Thomas, you have apparently implemented your mhx importer in blender. In Blender 2.49b how were you able to have it work? if I modify import_obj.py in the .blender/scripts directory of Blender program folder, blender will NOT recognize this script if I go to File->Import->Wavefront (.obj) .. so to me, this seems that the importer is coded internally in Blender 2.49b and the program does not directly use the script files it has available for the user. I want to confirm this, and I want to know what you have done to make the .mhx to be diplayed in the Import menu of Blender.

Jose
jcapco
 
Posts: 157
Joined: Wed Jan 13, 2010 6:26 pm

Re: Problems importing MHX to Blender

Postby ThomasL » Thu Jun 17, 2010 11:45 am

Hi Jose.
The import menu is only modified in the 2.5 version. The code that does this is at the end of the 2.5 import script. It is fairly standard; the built-in scripts access menus in the same way.

The mhx importer for 2.49 uses an old-fashioned interface with buttons.
ThomasL
 
Posts: 1139
Joined: Tue Sep 15, 2009 2:46 am

Re: Problems importing MHX to Blender

Postby pistacja » Wed Jun 23, 2010 8:02 am

I'm also having problems importing mhx to blender... but I never used blender before so there's a big chance I'm doing something wrong.
I'm using a MH build from yesterday (22.06.2010) and a Blender 2.5 alpha 2 build also downloaded yesterday from www.graphicall.org (2.52.5 r'29574'). I did also try an older version of blender 2.5 (the one from the download section of blender.org) but that didn't work ( no module mathutils error).

I copied the scripts from makehuman\importers\mhx\blender25x to blender\.blender\scripts\io, blender started, no error reported, but when I try to import a mhx file I only get this:
RNA_string_set: IMPORT_SCENE_OT_makehuman_mhx.filename not found.
RNA_string_set: IMPORT_SCENE_OT_makehuman_mhx.directory not found.
RNA_string_set: IMPORT_SCENE_OT_makehuman_mhx.filepath not found.
RNA_string_get_alloc: IMPORT_SCENE_OT_makehuman_mhx.filepath not found.
error: not a mhx file

What am I doing wrong?
This post was made thanks to Me, Myself and I.
pistacja
 
Posts: 159
Joined: Fri Feb 15, 2008 1:56 pm

Re: Problems importing MHX to Blender

Postby crashoverride » Wed Jun 23, 2010 12:34 pm

You're propably missing the actual file path and file name (see attached picture for more info).
Attachments
mhx import.png
mhx import file path
crashoverride
 
Posts: 5
Joined: Tue Jun 15, 2010 11:12 am

Re: Problems importing MHX to Blender

Postby pistacja » Wed Jun 23, 2010 2:49 pm

That's it, worked like a charm.

I thought I had to select the file using this file browsing thing, didn't eve notice there was something on the side. Must be a blender thing. Now if I could only knew how to use this...
This post was made thanks to Me, Myself and I.
pistacja
 
Posts: 159
Joined: Fri Feb 15, 2008 1:56 pm


Return to Bugs, problems and feature requests

Who is online

Users browsing this forum: No registered users and 1 guest