Moderator: joepal
from core import G
application=MHApplication
#application.__init__(G.app)
mhapi = G.app.mhapi
human = mhapi.internals.getHuman()
directory = "C:\\Users\\My_name\\Documents\\makehuman\\v1py3\\models"
for filename in os.listdir(directory):
if filename.endswith(".mhm"):
human.load("C:\\Users\\My_name\\Documents\\makehuman\\v1py3\\models\\" + filename, True)
mhapi.exports.exportAsOBJ(
"C:\\Users\\My_name\\Documents\\makehuman\\v1py3\\models\\" + filename[0:-4] + ".obj")
else:
continue
Users browsing this forum: No registered users and 1 guest