艺术的追求从编程开始

C/C++/UNIX/PYTHON/ALGORITHM

导航

随笔分类 -  autodesk maya plugin programming

about maya plugin programming
十四、View Port 2.0
摘要:1. 分为以下几类: (1) data classes: 用来访问scene中的geometry 和 shaders (2)scene override: 主要是用户自定义的drawing 、shading和effects (3)Rendering overrides: custom renderi 阅读全文

posted @ 2016-02-10 15:19 Rambo.Wang 阅读(201) 评论(0) 推荐(0)

十三、File Translator怎么写
摘要:---恢复内容开始--- 1. File Translator可以将信息从maya中导入和导出。 2. 创建一个file translator需要从MPxFileTranslator继承。 3. 函数介绍: (1)::canBeOpened()方法决定了file translator是否可以打开文件 阅读全文

posted @ 2016-02-10 10:42 Rambo.Wang 阅读(291) 评论(0) 推荐(0)

十二、shapes
摘要:1. The control points are attributes on the shape which are usually arrays of points. Control points become interactive, i.e. they can be selected and 阅读全文

posted @ 2016-02-02 19:52 Rambo.Wang 阅读(267) 评论(0) 推荐(0)

十一、Manipulators
摘要:1. Manipulators是可以用三维进行绘制的的节点,可以将用户行为值化,对其他节点的属性进行modify。 2. 属性值可以通过Channel Box 和Graph Editor进行修改。同其他的dg节点不一样,manipulator直接修改属性值,而不通过plug。 3.可以用以下几种方法 阅读全文

posted @ 2016-02-02 00:41 Rambo.Wang 阅读(375) 评论(0) 推荐(0)

十、DG
摘要:1.DG是dependency graph,我认为是依赖图,和DAG(有向无环图)的区别:DAG用来做场景管理,每个node代表的不是tranform就是shape,有父子关系。 DG是代表了每个实体节点之间的相互关系,通过plug,从output到input,再在每个DG节点中,对数据进行存储和计 阅读全文

posted @ 2016-02-01 17:54 Rambo.Wang 阅读(906) 评论(0) 推荐(0)

九、DAG hierarchy
摘要:DAG 节点有两种,Transformation/shape。 shape节点是transformation的子节点。 transformation节点包括position, rotation, scale, parents infromation. A dag path 代表从root node到 阅读全文

posted @ 2016-01-30 12:34 Rambo.Wang 阅读(327) 评论(0) 推荐(0)

八、MPxToolCommand, tool command
摘要:1. Tool Property Sheets: 是用来更改context属性的编辑框,类似于attribute editor。(property和attribute本质上是一个意思)作用于activated context。The tool property sheet for the acti... 阅读全文

posted @ 2016-01-25 16:31 Rambo.Wang 阅读(326) 评论(0) 推荐(0)

七、context command
摘要:context command是用来新建自己的工具,可以调用OPENGL,获取鼠标操作函数,在view窗口画自己想画的东西。(我是这麽理解的,可以以后再确定一下)下面是一个context command的例子,通过例子来说明context command的代码怎么写,又怎么样来activate。包含... 阅读全文

posted @ 2016-01-25 10:38 Rambo.Wang 阅读(561) 评论(0) 推荐(0)

六、通过插件如何创建自己的MEL command
摘要:1. MAYA API支持不同类型的plugin (1)Command Plugin——扩充MEL命令 (2)Tool Commands——通过鼠标输出 (3)DG plugin——对场景添加新的操作 (4)Device Plugin——让其他的device链接到maya2. registe... 阅读全文

posted @ 2016-01-24 20:22 Rambo.Wang 阅读(537) 评论(0) 推荐(0)

五、selecting with the API
摘要:1. 命令通常从selection list中得到input, 调用MGlobal::getActiveSelectionList(MSelectionList &dest, bool orderedSelectionIfAvailabel=false).得到MSelectionList和MItSe... 阅读全文

posted @ 2016-01-23 09:03 Rambo.Wang 阅读(246) 评论(0) 推荐(0)

四、maya python plugin
摘要:只是作简单的了解。1区别(1)Python scripts:可以在Maya的script editor 执行。用于扩展maya.cmd模块。The import statement below is typically found at the head of Maya Python scripts... 阅读全文

posted @ 2016-01-23 08:21 Rambo.Wang 阅读(362) 评论(0) 推荐(0)

三、Distributing Maya Plugins
摘要:For example, a fully implemented render utility node will have at least three files:the plug-in file containing the node;an Attribute Editor script;an... 阅读全文

posted @ 2016-01-23 00:29 Rambo.Wang 阅读(197) 评论(0) 推荐(0)

二、搭建编程环境
摘要:1. 两种方式:(1)plugin:实例在:C:\Program Files\Autodesk\maya2015\devkit\plug-ins(2)standalone API application:C:\Program Files\Autodesk\maya2015\devkit\applic... 阅读全文

posted @ 2016-01-22 23:20 Rambo.Wang 阅读(298) 评论(0) 推荐(0)

一、Maya API简介
摘要:#include #include DeclareSimpleCommand( hello, "Autodesk", "2013");MStatus hello::doIt( const MArgList& args ){ cout #include #include #include #in... 阅读全文

posted @ 2016-01-22 19:59 Rambo.Wang 阅读(1240) 评论(0) 推荐(0)

如何搭建maya plugin develop environment on MAC OS X
摘要:1.首先我使用的平台是xcode version 5.1.1 ,MAYA2015, MAX OS X 10.9.4。 MAYA2015要求的是:Mountain Lion 10.8.5, Xcode 5.0.2 with SDK 10.8 (Mountain Lion), clang with l... 阅读全文

posted @ 2014-08-01 06:59 Rambo.Wang 阅读(511) 评论(1) 推荐(0)

maya user guider第一课,一些基本概念
摘要:1、maya主要用于建模,动画, 视觉特效,游戏, 和模拟 一般分为以下几类: l 建模: ploygons, nurbs, subdivision surfaces 这是不同的建模方法. polygons 是创建模型表面通过建立和reshapeing一些简单的面. nurbs则是方便你创建平滑的弯曲的表面通过一些高级的控制 subdivision surfaces 则允许你编辑所有表面的一个子集,如果表面是由polygon构成的话。 l character rigging,角色绑定。大多数的动画中有character,articulated models铰链... 阅读全文

posted @ 2013-11-19 11:14 Rambo.Wang 阅读(705) 评论(0) 推荐(0)