问题描述

每次重新打开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工具导致的。

解决办法

  1. 手动
    Windows---->Settings/Preferences---- --> plug-in Manager---- -->atomImportExpor
    勾选上atomImportExpor即可
  2. python代码
import maya.cmds as cmds
cmds.loadPlugin("atomImportExport")

在相应的maya文件中添加这行代码即可。

Maya export/inport error----Invalid file type specified相关推荐

  1. 发生了Post错误:错误代码40005,微信返回错误信息:invalid file type

    给客户部署 PxxCms, 使用群发功能发送图文的的时候提示: 发生了Post错误:错误代码40005,微信返回错误信息:invalid file type, 没学过php伤不起 ... Google ...

  2. error: unknown file type '.pyx' (from 'pycocotools/_mask.pyx')

      在 YOLO v3模型中运用 cocoapi 进行评估模型,安装时报错显示: building 'pycocotools._mask' extension error: unknown file ...

  3. 使用 spritesmith 报错 Error: Invalid file signature

    问题 使用 spritesmith 时,依赖包报错了 const Spritesmith = require('spritesmith'); const path = require('path'); ...

  4. 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 ...

  5. Linux GRUB 引导Win 7 ---- error: invalid EFI file path

    最近新买了个固态硬盘,先装了个Win 7系统,现在装的系统和以前装系统唯一的区别是引导不是以前的MBR,而是最新看似是个趋势的GPT+UEFI方式. win 7 装完啦,还是和以往的一样装 Ubant ...

  6. JWPlayer Uncaught Error: Invalid SRT file

    错误场景: JWPlayer 播放视频,添加了字幕和缩略图: 字幕为Srt格式: 1 00:00:00,000 --> 00:00:02,000 战略管理过程2 00:00:03,000 --& ...

  7. error: invalid new-expression of abstract class type 'Rectangle'

    class GeometricObject { --virtual bool hit(const Ray& ray, double& t, ShadeRec& s) const ...

  8. 小程序Git问题:ERROR: credentials callback returned an invalid cred type解决方法

    ERROR: credentials callback returned an invalid cred type 错误:凭据回调返回了无效的凭据类型 从最字面上的意思理解是在拉取或者合并时,没有拿到 ...

  9. error: invalid application of 'sizeof' to an incomplete type 'JNINativeMethod []'

    android studio比较奇葩得把new char[100]{"fff"}这样的直接写成字面值常量 而window 的jni则必须使用这种 -- 尴尬 然后发现2个jni文件 ...

最新文章

  1. PIE SDK图层树伙伴控件示例
  2. 安全预警:勒索软件正成为制马人的新方向
  3. Spring Boot、Spring Cloud、Spring Cloud Alibaba版本关系查询
  4. linux 进程装入 物理内存 页表,linux内存管理解析----linux物理,线性内存布局及页表的初始化...
  5. first OData Batch operation when Sales Pipeline is launched
  6. java 错误码设计_JAVA端的错误码和错误信息,该设计成全局常量还是枚举值?
  7. java.util.concurrent.locks.Lock文档说明
  8. docker 安装及打springboot jar打镜像
  9. 学习Spring Boot:(九)统一异常处理
  10. @Html.ActionLink方法
  11. json.decoder.JSONDecodeError: Expecting ‘,‘ delimiter: line xx column xx (char xxx)
  12. Gstreamer——搭建RTSP服务器
  13. 如何在苹果Mac上设置文档样板,开启文档时自动复制?
  14. WiFi基础知识概述
  15. Postman 设置环境变量 个人记录
  16. IT项目管理表格集合
  17. QQ影音播放器 for Mac
  18. 解决DeepL翻译器翻译出来的文档是只读模式,不能编辑
  19. jquery input标签中 中checkbox全部选中与全部取消
  20. 数据科学与大数据技术专业 —— 云计算●虚拟化 课程 期末复习卷及其简答(2)

热门文章

  1. Win11的两个实用技巧系列之玩游戏闪跳、错误代码0x80004005解决
  2. Cisco 2960X交换机支持多少条静态路由
  3. 1000ip百度能给你带来多少收入?写给中小站长
  4. 即时通信-环信API方法
  5. right 微信小程序_微信小程序高德地图API
  6. 计算机无法正常启动无法修复,win10无法正常启动
  7. 《后端架构师技术图谱》
  8. 第二章-空间众包(spatial crowdsourcing)概述
  9. 自然语言菜鸟学习笔记(七):RNN(循环神经网络)及变体(LSTM、GRU)理解与实现(TensorFlow)
  10. 杭钢集团:以用友iuap为数智底座的数智化转型之路