Maya export/inport error----Invalid file type specified
问题描述
每次重新打开Maya,运行代码(该代码没问题)
a = "TEST"
P = "C:/TEST.atom"
mel.eval('file -import -type "atomImport" -ra true -namespace \"%s\"-options ";;targetTime=3;option=insert;match=string;;selected=selectedOnly;search=;replace=;prefix=AmalRig:;suffix=;mapFile=C:/Users/wumengyao/Documents/maya/projects/default/data/;" \"%s\";'%(a,P))
它会一直报这样的错误
Error: line 1: Invalid file type specified: atomImport
接着,手动导入ATOM文件一次,再运行便不会有错误。
分析问题根源
这个错误是由于我们的Maya没有开启atomImportExport,它找不到atom工具导致的。
解决办法
- 手动
Windows---->Settings/Preferences---- --> plug-in Manager---- -->atomImportExpor
勾选上atomImportExpor即可 - python代码
import maya.cmds as cmds
cmds.loadPlugin("atomImportExport")
在相应的maya文件中添加这行代码即可。
Maya export/inport error----Invalid file type specified相关推荐
- 发生了Post错误:错误代码40005,微信返回错误信息:invalid file type
给客户部署 PxxCms, 使用群发功能发送图文的的时候提示: 发生了Post错误:错误代码40005,微信返回错误信息:invalid file type, 没学过php伤不起 ... Google ...
- error: unknown file type '.pyx' (from 'pycocotools/_mask.pyx')
在 YOLO v3模型中运用 cocoapi 进行评估模型,安装时报错显示: building 'pycocotools._mask' extension error: unknown file ...
- 使用 spritesmith 报错 Error: Invalid file signature
问题 使用 spritesmith 时,依赖包报错了 const Spritesmith = require('spritesmith'); const path = require('path'); ...
- error: invalid use of incomplete type 'XXXX' ;error: forward declaration of 'XXXX' 声明改为包含头文件
error: invalid use of incomplete type 'XXXX' error: forward declaration of XXXX 声明改为包含头文件 class XXXX ...
- Linux GRUB 引导Win 7 ---- error: invalid EFI file path
最近新买了个固态硬盘,先装了个Win 7系统,现在装的系统和以前装系统唯一的区别是引导不是以前的MBR,而是最新看似是个趋势的GPT+UEFI方式. win 7 装完啦,还是和以往的一样装 Ubant ...
- JWPlayer Uncaught Error: Invalid SRT file
错误场景: JWPlayer 播放视频,添加了字幕和缩略图: 字幕为Srt格式: 1 00:00:00,000 --> 00:00:02,000 战略管理过程2 00:00:03,000 --& ...
- error: invalid new-expression of abstract class type 'Rectangle'
class GeometricObject { --virtual bool hit(const Ray& ray, double& t, ShadeRec& s) const ...
- 小程序Git问题:ERROR: credentials callback returned an invalid cred type解决方法
ERROR: credentials callback returned an invalid cred type 错误:凭据回调返回了无效的凭据类型 从最字面上的意思理解是在拉取或者合并时,没有拿到 ...
- error: invalid application of 'sizeof' to an incomplete type 'JNINativeMethod []'
android studio比较奇葩得把new char[100]{"fff"}这样的直接写成字面值常量 而window 的jni则必须使用这种 -- 尴尬 然后发现2个jni文件 ...
最新文章
- PIE SDK图层树伙伴控件示例
- 安全预警:勒索软件正成为制马人的新方向
- Spring Boot、Spring Cloud、Spring Cloud Alibaba版本关系查询
- linux 进程装入 物理内存 页表,linux内存管理解析----linux物理,线性内存布局及页表的初始化...
- first OData Batch operation when Sales Pipeline is launched
- java 错误码设计_JAVA端的错误码和错误信息,该设计成全局常量还是枚举值?
- java.util.concurrent.locks.Lock文档说明
- docker 安装及打springboot jar打镜像
- 学习Spring Boot:(九)统一异常处理
- @Html.ActionLink方法
- json.decoder.JSONDecodeError: Expecting ‘,‘ delimiter: line xx column xx (char xxx)
- Gstreamer——搭建RTSP服务器
- 如何在苹果Mac上设置文档样板,开启文档时自动复制?
- WiFi基础知识概述
- Postman 设置环境变量 个人记录
- IT项目管理表格集合
- QQ影音播放器 for Mac
- 解决DeepL翻译器翻译出来的文档是只读模式,不能编辑
- jquery input标签中 中checkbox全部选中与全部取消
- 数据科学与大数据技术专业 —— 云计算●虚拟化 课程 期末复习卷及其简答(2)