No import mhx2 option in blender 2.79b

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

No import mhx2 option in blender 2.79b

Postby icefreezer7 » Wed Apr 24, 2019 2:06 pm

Hello,
I am trying to use makehuman models with blender 2.79b in linux mint 19.
So I installed mhx2 and followed the instructions here: https://bitbucket.org/Diffeomorphic/mhx ... e/overview
and got it to export from makehuman as mhx2. After putting the addon into blender and installing from file in the blender user preferences, there is still no option to import make human files. Should I install a different version of blender for this to work?
icefreezer7
 
Posts: 3
Joined: Wed Apr 24, 2019 1:48 pm

Re: No import mhx2 option in blender 2.79b

Postby blindsaypatten » Wed Apr 24, 2019 3:09 pm

If you look in the Blender system console (Blender Window menu) is there a message saying "Loading MHX2 importer-runtime"? Are there any error messages? Does the mhx2 importer-runtime appear in your user preferences and does it have a check next to it?
blindsaypatten
 
Posts: 586
Joined: Tue Mar 14, 2017 11:16 pm

Re: No import mhx2 option in blender 2.79b

Postby icefreezer7 » Wed Apr 24, 2019 5:32 pm

There is no error when I run blenders system console. It even says:
Loading MHX2 importer-runtime v 0.30
Loading MHX2 armature
build loaded
MHX2 armature loaded
shaders.py
MHX2 successfully (re)loaded

and the mhx2 importer-runtime appears with a check.
icefreezer7
 
Posts: 3
Joined: Wed Apr 24, 2019 1:48 pm

Re: No import mhx2 option in blender 2.79b

Postby blindsaypatten » Thu Apr 25, 2019 3:13 am

In the tools panel (? the panel on the left side of the viewport) there are various tabs, is there an MHX2 Runtime tab? If so, when you select it is there an Import MHX2 button?

Are you sure it isn't at the bottom of the list in the Import menu? It gets added at the bottom instead of in alphabetical order like the rest of the importers.

Clutching at straws, in the python console you could put in
bpy.ops.import_scene.
and then autocomplete, makehuman_mhx2 should be one of the possible completions. If not it didn't load, if it does it is loaded but the add to the UI failed.

Good luck.
blindsaypatten
 
Posts: 586
Joined: Tue Mar 14, 2017 11:16 pm

Re: No import mhx2 option in blender 2.79b

Postby icefreezer7 » Thu Apr 25, 2019 4:43 pm

Yes, there was a mhx2 runtime tab with an import mhx2 button and it successfully imported my MH model. Thank you so much.
But why is it not in the normal import options?
icefreezer7
 
Posts: 3
Joined: Wed Apr 24, 2019 1:48 pm

Re: No import mhx2 option in blender 2.79b

Postby loki1950 » Thu Apr 25, 2019 5:25 pm

It should be on File->Import->Makehuman(.mhx2) at least it is so on the five separate installs that I have on both Linux and Windows.

Enjoy the Choice :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo Ideapad 320-15ABR Win 10/Mint 19
User avatar
loki1950
 
Posts: 1219
Joined: Thu Dec 18, 2014 6:27 pm
Location: Ottawa,Ontario

Re: No import mhx2 option in blender 2.79b

Postby blindsaypatten » Thu Apr 25, 2019 6:02 pm

icefreezer7 wrote:Yes, there was a mhx2 runtime tab with an import mhx2 button and it successfully imported my MH model. Thank you so much.
But why is it not in the normal import options?

I can't think of a reason for it to not appear in the import menu, but I'm happy that the workaround works for you so aren't blocked from proceeding.
blindsaypatten
 
Posts: 586
Joined: Tue Mar 14, 2017 11:16 pm

Re: No import mhx2 option in blender 2.79b

Postby Aranuvir » Thu Apr 25, 2019 8:17 pm

I can't think of a reason for it to not appear in the import menu, but I'm happy that the workaround works for you so aren't blocked from proceeding.

The reason is quite simple: there's a bug in the code, so mhx2 doesn't register to the top bar as an importer...
Aranuvir
 
Posts: 1314
Joined: Sun Oct 12, 2014 2:12 pm

Re: No import mhx2 option in blender 2.79b

Postby RobBaer » Thu Apr 25, 2019 11:34 pm

Aranuvir wrote:
I can't think of a reason for it to not appear in the import menu, but I'm happy that the workaround works for you so aren't blocked from proceeding.

The reason is quite simple: there's a bug in the code, so mhx2 doesn't register to the top bar as an importer...


?? Hmmmm.... It appears fine on the import menu on my Windows machine. Second from bottom choice (ie., not alphabetical)
User avatar
RobBaer
 
Posts: 1208
Joined: Sat Jul 13, 2013 3:30 pm
Location: Kirksville, MO USA

Re: No import mhx2 option in blender 2.79b

Postby Aranuvir » Fri Apr 26, 2019 6:31 pm

@Rob: which version?

Code: Select all
from __init__.py (v30)

lines 583-584:
def menu_func(self, context):
    self.layout.operator(ImportMHX2.bl_idname, text="MakeHuman (.mhx2)...")  # ImportMHX2 is deprecated...

line 667:
#bpy.types.INFO_MT_file_import.append(menu_func) # this line is self-explanatory why mhx2 does not register as importer. BTW, it's bpy.types.TOPBAR_MT_file_import.append(menu_func) in B28...


There's a pending pull request in the repo...
Aranuvir
 
Posts: 1314
Joined: Sun Oct 12, 2014 2:12 pm

Next

Return to MHX2 and other plugins developed outside MakeHuman

Who is online

Users browsing this forum: No registered users and 1 guest

cron