Page 1 of 1

Export mhx2 to file fails

PostPosted: Tue Nov 03, 2020 7:43 pm
by hausmeister
I am using Linux Mint 19,2 and 9_export_mhx2 from mhx-mh-latest.zip
I can not export with mhx2 to a file, but e.g. collada (.dae) works.

I get the following error:
Exception during event onFileSelected
Traceback (most recent call last):
File "./core/events3d.py", line 211, in callEvent
method(event)
File "./apps/gui/guiexport.py", line 112, in onFileSelected
exporter.export(gui3d.app.selectedHuman, filename)
File "plugins/9_export_mhx2/__init__.py", line 56, in export
mh2mhx2.exportMhx2(filename("mhx2"), cfg)
File "plugins/9_export_mhx2/mh2mhx2.py", line 98, in exportMhx2
mesh.material.setViewPortColor(getSkinBlender().getDiffuseColor())
AttributeError: 'Material' object has no attribute 'setViewPortColor'

Re: Export mhx2 to file fails

PostPosted: Wed Nov 04, 2020 12:16 am
by RobBaer
Could you tell us which MakeHuman you are running. Is it 1.1.1 or the 1.2.x release candidate?

Also, could you tell us where/when/how/version for your version of mhx2?

Re: Export mhx2 to file fails

PostPosted: Wed Nov 04, 2020 7:07 pm
by hausmeister
It is Makehuman 1.1.1_1 for Linux mint (contained as a package)
In mh2mhx.py I can read "Mhx2 Version = 0.31

Re: Export mhx2 to file fails

PostPosted: Wed Nov 04, 2020 9:03 pm
by RobBaer
My sense, given the "older nature" of your MakeHuman installation, is to recommend that you start by upgrading to the latest 1.2.0 version of MakeHuman. There is a release candidate for Windows that will become final within days that you could download and try right now. However, since you are on Linux Mint, you have two choices. One is to install from source, but there is some possibility of having to play around with dependencies.

The better is to wait until final ppa for Linux is announced (theoretically within days). Loki has gone through the process already and I think may have some tips for how to get the "recommends" part of things with the new Mint policies. He's been there, done that already.

Re: Export mhx2 to file fails

PostPosted: Wed Nov 04, 2020 10:03 pm
by loki1950
Thanks for the mention Rob I use he ppa and it is indeed version 1.2.0 and it is working as advertised.Mint has changed it's mind about "recommends" so that is no longer an issue.

Enjoy the Choice :)

Re: Export mhx2 to file fails

PostPosted: Thu Nov 05, 2020 4:59 pm
by hausmeister
Thank you for your efforts!

Re: Export mhx2 to file fails

PostPosted: Thu Nov 05, 2020 5:28 pm
by hausmeister
With makehuman 1.2.0 everything works fine!