上下求索
探索DirectX9.0)
posts - 29,  comments - 74,  trackbacks - 0

一直很想用用Max的 Script

其实Max的Script相比他本身的SDK还是有些优势的

首先是不用每次都重启Max调试

再有就是不用担心内存泄漏的危险,

最后Script的封装更加方便。

但是, 对于长期试用强类型编程语言的人来说 要适应脚本开发还是需要些时间的

脚本调试也不方便,缺乏强有力的异常处理手段 都是Script的弱点

第一次写MAx脚本,输出了一下Node:

 1 macroScript AutoMat category:"HowTo2"
 2 (
 3     output_name = getSaveFileName caption:"SpeedSheet File" types:"SpeedSheet (*.ssh)|*.ssh|All Files (*.*)|*.*|"
 4     if output_name != undefined then 
 5     (
 6         output_file = createfile output_name
 7         if output_file==undefined then
 8         (
 9             messageBox "can not open file"
10             --return
11         )
12 
13         rnode=rootnode.name
14         format "The Root Node: %\n" rnode to:output_file 
15         
16         
17         for o in rootnode.children do
18         (
19             format " Sub Node: % \n" o.name to:output_file
20             format " Base Class: % \n" o.baseobject to: output_file
21             format " \n" to: output_file
22         )
23         
24         close output_file
25         
26         edit output_name
27         
28     )
29     
30 

  )

  

posted on 2007-05-15 18:13 大河马和小魔鱼 阅读(414) 评论(1)  编辑 收藏 所属分类: Directx9

FeedBack:
2008-05-11 10:28 | 47908 [未注册用户]
CSSCI核心期刊快速推荐发表,快速推荐发表 13787148044 侯先生 WWW.CSSCI2008.CN
  回复  引用    

标题  
姓名  
主页
Email (只有博主才能看到) 
验证码 *  看不清,换一张 [登录][注册]
内容(请不要发表任何与政治相关的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
 
历史上的今天:

 



<2008年5月>
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567

与我联系

搜索

 

常用链接

留言簿(13)

我参与的团队

随笔分类

随笔档案

最新评论

阅读排行榜

评论排行榜