MHX Export Problem in Alpha5

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

Re: MHX Export Problem in Alpha5

Postby Lemon » Sat Jun 26, 2010 12:31 pm

mflerackers, do you mean the lines in python code? And what .py file is to be corrected?
Lemon
 
Posts: 47
Joined: Wed Jun 23, 2010 8:44 am

Re: MHX Export Problem in Alpha5

Postby mflerackers » Sat Jun 26, 2010 12:39 pm

in python yes. Ther error in the console should show the file and line.
MakeHuman project Developer
mflerackers
 
Posts: 636
Joined: Thu Feb 05, 2009 11:53 am
Location: Kyoto

Re: MHX Export Problem in Alpha5

Postby b!d » Wed Jul 28, 2010 5:05 am

mflerackers wrote:Actually you only need to comment lines which print the directory name to the console. Since the string contains non-ascii printable characters, the print statement fails.


Just adding some note. I did commenting like what mflerackers said. Those comments will disable print commands, so the console won't display the 'filename' value, then the error won't occur. The code below can be found in mh2mhx.py.

Code: Select all
def exportMhx(obj, filename):   
   (name, ext) = os.path.splitext(filename)

   filename = name+"-24"+ext
#   print("Writing MHX 2.4x file " + filename )   # Commented by b!d
   fp = open(filename, 'w')
   exportMhx_24(obj, fp)
   fp.close()
#   print("MHX 2.4x file %s written" % filename)   # Commented by b!d

   filename = name+"-25"+ext
#   print("Writing MHX 2.5x file " + filename )   # Commented by b!d
   fp = open(filename, 'w')
   exportMhx_25(obj, "rig", fp)
   fp.close()
#   print("MHX 2.5x file %s written" % filename)   # Commented by b!d

   return
b!d
 
Posts: 12
Joined: Fri Apr 04, 2008 8:01 am

Re: MHX Export Problem in Alpha5

Postby Lemon » Fri Aug 27, 2010 6:01 pm

Thanks for all the replies. I found the easiest way to solve this proplem: I renamed system documents folder using XP Tweaker software. So the cyrillic name is now replaced with "My Documents". And MakeHuman rendering, saving and exporting functions now work perfectly!!! :D
Lemon
 
Posts: 47
Joined: Wed Jun 23, 2010 8:44 am

Previous

Return to Bugs, problems and feature requests

Who is online

Users browsing this forum: No registered users and 1 guest

cron