如何保存到.mhm文件

如何解决如何保存到.mhm文件

我在MakeHuman中创建了一个扩展名为.mhm的文件。 在Windows中,我可以使用写字板打开文件,并且可以看到以下内容:

# Written by MakeHuman 1.1.1
version v1.1.1
tags 001_Final
camera 8.0 1.0 0.021307010478 0.846332182106 0.541236909817 1.1625
modifier nose/nose-flaring-decr|incr -0.080000
modifier mouth/mouth-dimples-in|out 0.460000
modifier breast/breast-trans-down|up 1.000000
modifier nose/nose-trans-backward|forward 0.206000
modifier macrodetails-universal/Muscle 0.500000
modifier mouth/mouth-scale-horiz-decr|incr -0.080000
modifier macrodetails/African 0.460000
modifier neck/neck-trans-down|up -0.174000
modifier macrodetails-proportions/BodyProportions 0.786000
modifier mouth/mouth-laugh-lines-in|out 0.080000
modifier torso/torso-scale-horiz-decr|incr -0.048000
modifier neck/neck-scale-depth-decr|incr 0.158000
modifier torso/torso-trans-backward|forward 0.032000
modifier neck/neck-scale-horiz-decr|incr -0.620000
modifier nose/nose-trans-down|up 0.096000
modifier head/head-scale-depth-decr|incr -0.222000
modifier eyes/r-eye-bag-decr|incr -0.222000
modifier mouth/mouth-lowerlip-ext-down|up -0.206000
modifier macrodetails/Gender 0.000000
modifier torso/torso-scale-vert-decr|incr -0.064000
modifier head/head-angle-in|out -0.126000
modifier nose/nose-point-width-decr|incr 0.190000
modifier macrodetails-height/Height 0.690000
modifier breast/BreastSize 0.738000
modifier mouth/mouth-scale-vert-decr|incr -0.350000
modifier mouth/mouth-lowerlip-middle-down|up -0.666000
modifier head/head-invertedtriangular 0.937000
modifier nose/nose-hump-decr|incr -0.112000
modifier nose/nose-septumangle-decr|incr 0.048000
modifier nose/nose-base-down|up -0.064000
modifier torso/torso-trans-down|up 0.080000
modifier nose/nose-nostrils-width-decr|incr -0.968000
modifier mouth/mouth-trans-down|up -0.016000
modifier macrodetails/Age 0.500000
modifier mouth/mouth-angles-down|up 0.476000
modifier neck/neck-double-decr|incr -0.080000
modifier breast/BreastFirmness 1.000000
modifier macrodetails/Asian 0.000000
modifier eyebrows/eyebrows-angle-down|up -0.032000
modifier breast/breast-point-decr|incr -0.842000
modifier nose/nose-scale-depth-decr|incr 0.286000
modifier head/head-oval 0.040000
modifier forehead/forehead-temple-decr|incr 0.302000
modifier mouth/mouth-trans-in|out -0.080000
modifier head/head-fat-decr|incr 0.112000
modifier head/head-age-decr|incr -0.254000
modifier macrodetails/Caucasian 0.540000
modifier nose/nose-trans-in|out 0.016000
modifier nose/nose-curve-concave|convex -0.016000
modifier head/head-trans-in|out 0.016000
modifier head/head-square 0.357000
modifier eyes/r-eye-bag-in|out -0.238000
modifier mouth/mouth-upperlip-volume-decr|incr -1.000000
modifier head/head-scale-horiz-decr|incr 0.080000
modifier chin/chin-prognathism-decr|incr -0.032000
modifier nose/nose-scale-vert-decr|incr -0.048000
modifier head/head-round 0.151000
modifier nose/nose-nostrils-angle-down|up -0.206000
modifier nose/nose-compression-compress|uncompress -0.142000
modifier head/head-rectangular 0.286000
modifier mouth/mouth-cupidsbow-decr|incr -0.048000
modifier head/head-back-scale-depth-decr|incr -0.334000
modifier breast/breast-dist-decr|incr -0.270000
modifier eyebrows/eyebrows-trans-backward|forward -0.286000
modifier nose/nose-point-down|up 0.270000
modifier nose/nose-scale-horiz-decr|incr -0.476000
modifier mouth/mouth-upperlip-width-decr|incr 0.714000
modifier torso/torso-trans-in|out 0.080000
modifier neck/neck-scale-vert-decr|incr 0.334000
modifier chin/chin-bones-decr|incr -1.000000
modifier macrodetails-universal/Weight 0.500000
modifier mouth/mouth-trans-backward|forward -0.588000
modifier neck/neck-trans-in|out -0.080000
modifier nose/nose-greek-decr|incr -0.206000
modifier mouth/mouth-scale-depth-decr|incr 0.096000
modifier mouth/mouth-cupidsbow-width-decr|incr -0.080000
modifier mouth/mouth-lowerlip-volume-decr|incr -1.000000
hair Braid01 eead6f99-d6c6-4f6b-b6c2-210459d7a62e
eyebrows eyebrow008 79ea307f-a942-40dd-bf50-bbaa41f02034
eyes HighPolyEyes 2c12f43b-1303-432c-b7ce-d78346baf2e6
pose tpose.bvh
clothes female_casualsuit02 9896f4a4-a718-4bdd-8482-52e1855160f6
clothesHideFaces True
skinMaterial skins/default.mhmat
material Braid01 eead6f99-d6c6-4f6b-b6c2-210459d7a62e braid01.mhmat
material HighPolyEyes 2c12f43b-1303-432c-b7ce-d78346baf2e6 eyes/materials/brownlight.mhmat
subdivide False

我需要在matlab中导入此文件,进行一些更改,然后再次将其导出为.mhm。在做任何事情之前,我想确保我确实可以使用这种格式保存文件,但是这样做有问题。首先,我现在仅使用GUI将其加载为表格。

然后我尝试使用

进行保存
save('Final.mhm','Final')

文件已保存,但是当我尝试打开它时,它只会打开一系列看似乱码的字符。然后我尝试了:

writetable(Final,'ProvaFinal.txt')

这有效。我可以另存为.txt,然后手动将扩展名更改为.mhm

但是,我想在Matlab中以编程方式进行所有操作(同样,我必须对数百个文件执行此操作)。

我尝试过:

writetable(Final,'ProvaFinal.mhm')

按预期,它没有用。 我可以将Matlab文件另存为.mhm吗?

这是文件https://drive.google.com/file/d/1RcS_S3dJVBdrXEc6ibB9KTcm1eU4W-xt/view?usp=sharing

的副本

解决方法

文件扩展名并不是很重要。但是,在这种情况下,.txt扩展名隐式告诉Matlab您要编写一个以空格分隔的文件。

来自documentation

writetable(T,filename)以文件名指定的名称和扩展名写入文件。
writetable根据指定的扩展名确定文件格式。扩展名必须是以下其中之一

  • .txt,.dat或.csv(用于分隔的文本文件)
  • 用于Excel®电子表格文件的.xls,.xlsm或.xlsx
  • .xlsb for Excel电子表格文件,在装有Excel forWindows®的系统上受支持

因此,您应该能够将其写入.txt文件,然后写入rename the file from within MATLAB

writetable(Final,'ProvaFinal.txt');
movefile('ProvaFinal.txt','ProvaFinal.mhm');

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


依赖报错 idea导入项目后依赖报错,解决方案:https://blog.csdn.net/weixin_42420249/article/details/81191861 依赖版本报错:更换其他版本 无法下载依赖可参考:https://blog.csdn.net/weixin_42628809/a
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下 2021-12-03 13:33:33.927 ERROR 7228 [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPL
错误1:gradle项目控制台输出为乱码 # 解决方案:https://blog.csdn.net/weixin_43501566/article/details/112482302 # 在gradle-wrapper.properties 添加以下内容 org.gradle.jvmargs=-Df
错误还原:在查询的过程中,传入的workType为0时,该条件不起作用 <select id="xxx"> SELECT di.id, di.name, di.work_type, di.updated... <where> <if test=&qu
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct redisServer’没有名为‘server_cpulist’的成员 redisSetCpuAffinity(server.server_cpulist); ^ server.c: 在函数‘hasActiveC
解决方案1 1、改项目中.idea/workspace.xml配置文件,增加dynamic.classpath参数 2、搜索PropertiesComponent,添加如下 <property name="dynamic.classpath" value="tru
删除根组件app.vue中的默认代码后报错:Module Error (from ./node_modules/eslint-loader/index.js): 解决方案:关闭ESlint代码检测,在项目根目录创建vue.config.js,在文件中添加 module.exports = { lin
查看spark默认的python版本 [root@master day27]# pyspark /home/software/spark-2.3.4-bin-hadoop2.7/conf/spark-env.sh: line 2: /usr/local/hadoop/bin/hadoop: No s
使用本地python环境可以成功执行 import pandas as pd import matplotlib.pyplot as plt # 设置字体 plt.rcParams['font.sans-serif'] = ['SimHei'] # 能正确显示负号 p
错误1:Request method ‘DELETE‘ not supported 错误还原:controller层有一个接口,访问该接口时报错:Request method ‘DELETE‘ not supported 错误原因:没有接收到前端传入的参数,修改为如下 参考 错误2:cannot r
错误1:启动docker镜像时报错:Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen 解决方法:重启docker -> systemctl r
错误1:private field ‘xxx‘ is never assigned 按Altʾnter快捷键,选择第2项 参考:https://blog.csdn.net/shi_hong_fei_hei/article/details/88814070 错误2:启动时报错,不能找到主启动类 #
报错如下,通过源不能下载,最后警告pip需升级版本 Requirement already satisfied: pip in c:\users\ychen\appdata\local\programs\python\python310\lib\site-packages (22.0.4) Coll
错误1:maven打包报错 错误还原:使用maven打包项目时报错如下 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources)
错误1:服务调用时报错 服务消费者模块assess通过openFeign调用服务提供者模块hires 如下为服务提供者模块hires的控制层接口 @RestController @RequestMapping("/hires") public class FeignControl
错误1:运行项目后报如下错误 解决方案 报错2:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project sb 解决方案:在pom.
参考 错误原因 过滤器或拦截器在生效时,redisTemplate还没有注入 解决方案:在注入容器时就生效 @Component //项目运行时就注入Spring容器 public class RedisBean { @Resource private RedisTemplate<String
使用vite构建项目报错 C:\Users\ychen\work>npm init @vitejs/app @vitejs/create-app is deprecated, use npm init vite instead C:\Users\ychen\AppData\Local\npm-