maya nex插件插件NEX1.5.2.4 20...

相关说明:
PIXOLOGIC_ZBRUSH_V4R6-XFORCE.rar为特百度收集整理的结果,下载地址直接跳转到百度网盘进行下载,该文件的安全性和完整性需要您自行判断。感谢您对本站的支持.3009人阅读
游戏(43)
1. python的***
在Eclipse中***pydev环境,pydev更新地址为: &http://pydev.org/updates
2. 配置python环境:
打开Eclipse菜单Window/Preferences,在PyDev中配置Python Interpreter的设置如下:
注意要添加devkit\other\pymel\extras\completion\py目录。这样才有提示。
添加python代码:
import sys
import maya.OpenMaya as OpenMaya
import maya.OpenMayaMPx as OpenMayaMPx
kPluginCmdName = &spHelloWorld&
class scriptedCommand(OpenMayaMPx.MPxCommand):
def __init__(self):
OpenMayaMPx.MPxCommand.__init__(self)
#invoked when the command is run.
def doIt(self, argList):
print &hello World!&
def cmdCreator():
return OpenMayaMPx.asMPxPtr(scriptedCommand())
#initialize the script plug-in
def initializePlugin(mobject):
mplugin = OpenMayaMPx.MFnPlugin(mobject)
mplugin.registerCommand(kPluginCmdName, cmdCreator)
sys.stderr.write(&Failed to register command: %s\n& % kPluginCmdName)
#uninitialize the script plug-in
def uninitializePlugin(mobject):
mplugin = OpenMayaMPx.MFnPlugin(mobject)
mplugin.deregisterCommand(kPluginCmdName)
sys.stderr.write(&Failed to unregister command: %s\n& % kPluginCmdName)
这个例子是官方的
还有更多例子,可以参考maya目录devkit下
参考文章:
1. Debugging Python in Maya with Eclipse/Pydev :&
2. Using Eclipse with Maya: A Quick Reference:&
3. Remote Maya Python Debugging in Eclipse:&
4. [pydev.org] Remote Debugger: &
5. Setting Up PyMEL Autocompletion in Eclipse:&
6. How to Setup PyMEL Autocompletion in Eclipse:&
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:388586次
积分:4583
积分:4583
排名:第5111名
原创:88篇
评论:195条
(1)(2)(1)(2)(1)(1)(1)(2)(3)(1)(1)(1)(2)(3)(1)(1)(2)(1)(2)(2)(2)(2)(2)(9)(4)(9)(2)(2)(7)(4)(3)(7)(1)(1)(1)(1)(1)

参考资料

 

随机推荐