艺术的追求从编程开始

C/C++/UNIX/PYTHON/ALGORITHM

导航

2016年1月30日

九、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 阅读(299) 评论(0) 推荐(0) 编辑

2016年1月25日

八、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 阅读(296) 评论(0) 推荐(0) 编辑

七、context command

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

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

2016年1月24日

六、通过插件如何创建自己的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 阅读(482) 评论(0) 推荐(0) 编辑

2016年1月23日

五、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 阅读(235) 评论(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 阅读(344) 评论(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 阅读(161) 评论(0) 推荐(0) 编辑

2016年1月22日

二、搭建编程环境

摘要: 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 阅读(289) 评论(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 阅读(1190) 评论(0) 推荐(0) 编辑

2016年1月21日

Windows 下动态链接库和静态链接库

摘要: 1.静态链接库:就是在编译的时候把库中代码复制进工程中,导致工程变大,但是速度快。缺点在于一套代码可能在内存中有多份拷贝,占用内存。2.动态链接库:库由windos api加载库代码,内存中只有一份拷贝。工程中只保留链接到这份代码的引用,有两种动态链接库, (a)load time dynamic... 阅读全文

posted @ 2016-01-21 22:18 Rambo.Wang 阅读(372) 评论(0) 推荐(0) 编辑