4.3 - Maya Commands: Errors and Warnings
来源:互联网 发布:jabra elite sport软件 编辑:程序博客网 时间:2024/06/07 03:55
import maya.cmds as cmdsimport maya.OpenMaya as om#Errorsprint("start")cmds.error("This is an error") # the procedure will be interruptedprint("end")# the end will not be printedprint("start")om.MGlobal.displayError("This is a displayError") # the code will not be interruptedprint("end")#Warningcmds.warning("This is a warning")om.MGlobal.displayWarning("This is a displayWarning")# Infoprint("This is print statement")om.MGlobal.displayInfo("This is a displayInfo") # the Info will be displayed in maya
import maya.cmds as cmdsimport maya.OpenMaya as omsel = cmds.ls(sl=True)num_sel = len(sel) if num_sel >= 2: for s in sel: print(s)elif num_sel == 1: om.MGlobal.displayError("Please select at least two objects")else: om.MGlobal.displayError("no object selected")
0 0
- 4.3 - Maya Commands: Errors and Warnings
- Errors and Warnings
- TimesTen Warnings and Errors
- ;error_reporting = E_ALL; display all errors, warnings and notices
- How to Interpret Warnings and Errors in Dependency Walker
- HLSL errors and warnings (HLSL 错误及警告)
- Lesson 2.1 Maya commands
- 3.6 - Maya Commands: setAttr
- 3.10 - Maya Commands: ls
- 4.6 - Maya Commands: select
- OPNET14.5 Compilation errors and warnings Enter Exit 反了 相反
- Lesson 3.5 - Maya Commands: getAttr
- 中秋节,没有明月,有的是errors和warnings
- cc1: warnings being treated as errors
- cc1plus: warnings being treated as errors
- cc1plus: warnings being treated as errors
- [ns3] all warnings being treated as errors
- cc1plus: all warnings being treated as errors
- 调试记录
- 第十二周--项目4应用图的深度优先遍历思路求解问题 (1)(2)
- bootstrap模态框居中
- C++ 学习 (static, extern)
- (转载)Deep Learning(深度学习)学习笔记整理系列之(三)
- 4.3 - Maya Commands: Errors and Warnings
- 数据包的解析程序
- PriorityQueue优先级队列
- benchmark
- coderforce 550A. Two Substrings
- SSL 之数字签名
- android如音符般的震动
- 编译原理小结——字符和字符串之间的游戏
- (转载)Deep Learning(深度学习)学习笔记整理系列之(四)