QQ聊天
摘要: 机缘巧合做了一段时间技术美术。遇到过几次有人说技术美术一将难求,难以找到合适的。实际上对于技术美术,我的意见是,空降不如自己培养。至于原因要从头说起。我上一篇帖子说,美术和程序之间的沟通容易出现问题,所以才出现了技术美术。其实技术美术到不一定非要是做美术的,程序了解一些美术的工具,和制作过程,也可以称其为技术美术。不过因为大部分程序平时不用美术的工具,所以这样的技术美术,就比较偏程序,相对来做起的作用不如偏美术这边的大。以我所知,某公司,定期会强制一部分程序学习美术用的工具、了解美术的制作过程。这个措施不错,虽偶尔也会有一些问题出现,但总体说利大于弊。双方沟通之所以容易出问题,一方面是因为专业 阅读全文
posted @ 2012-03-26 03:41 SITT 阅读(1990) 评论(2) 推荐(2) 编辑
摘要: UnRegisterRedrawViewsCallback ShowCurrentTimeSecondFn ShowCurrentTimeSecond = ( local tempString GW.SetTransform(Matrix3 1) tempString = "Second:" + (CurrentTime.Frame / FrameRate) as string GW.hText [GW.GetWinSizeX()*0.45,30,0] tempString color:yellow GW.EnlargeUpdateRect #Whole)Reg... 阅读全文
posted @ 2012-03-17 21:59 SITT 阅读(605) 评论(0) 推荐(0) 编辑
摘要: 原本记录在网易博客的,有人问起,查了一下就顺路搬过来其实就是这一句脚本设置一下就好。可以放到自动启动里。(DotNetClass"System.Windows.Forms.Application").CurrentCulture=dotnetObject"System.Globalization.CultureInfo""zh-cn" 阅读全文
posted @ 2012-03-09 14:30 SITT 阅读(1345) 评论(0) 推荐(0) 编辑
摘要: 遇到有人问如何用代码设置checkbox的同时执行on checkbox changedstate 事件其实事件就是这个控件的一个函数范例如下,话说最近乱七八糟的忙,一直没有写帖子。有时间还是要积累一下View Code 1 rollout testRollout "" 2 ( 3 checkBox ckb1 "CheckButton" 4 button btn1 "Button" 5 on ckb1 changed state do 6 ( 7 print state 8 ) 9 on btn1 pressed do1... 阅读全文
posted @ 2011-12-20 16:19 SITT 阅读(671) 评论(0) 推荐(0) 编辑
摘要: theVoice = CreateOLEObject "SAPI.SpVoice"theVoice.Speak "Hello"你可以把hello替换成任意其他单词或句子比如 “fuck”然后你可以藏在任意地点来执行,你甚至可以用callback把这段脚本存在Max文件里,然后有人打开文件的时候就会发出“fuck”等等的声音。WinXP的话,控制面板--语音,Win7的话,控制面板--语音识别--文本到语音转换,有个列表可以换语音包 阅读全文
posted @ 2011-11-22 15:00 SITT 阅读(1181) 评论(4) 推荐(1) 编辑
摘要: 有网友问我如何使用脚本来创建十二面体,因为时间不多,所以只是用了顶点列表的方式。代码如下View Code plugin simpleObject DodecahedronGeometryPluginname:"Dodecahedron"classID:#(0x1e73aacc, 0x54773e26)category:"ScriptedGeometry"( parameters main rollout:params ( size type:#worldUnits ui:size default:0 ) rollout params "Par 阅读全文
posted @ 2011-11-08 16:58 SITT 阅读(706) 评论(0) 推荐(0) 编辑
摘要: sourceImage = openBitMap "d:\\testimage.bmp"outputImage = bitmap sourceImage.width sourceImage.heightcopy sourceImage outputImage outputImage.fileName = "d:\\testImage.jpg"JPEG.setQuality 99save outputImage--BitmapIO 阅读全文
posted @ 2011-11-04 10:11 SITT 阅读(876) 评论(3) 推荐(0) 编辑
摘要: View Code try(unRegisterRedrawViewsCallback DrawSelectedShapeVertexIndex) catch()Fn DrawSelectedShapeVertexIndex = ( GW.SetTransform(Matrix3 1) SelectedShapes = for tempObject in Selection where SuperClassOf tempObject == Shape Collect tempObject for tempShape in SelectedShapes do ( ... 阅读全文
posted @ 2011-09-24 13:32 SITT 阅读(564) 评论(0) 推荐(0) 编辑
摘要: 今天发现,max自己的茶壶的Mesh,存在一个面有两个点的索引相同的情况。啊哈哈哈,mesh真是什么结构都有。有兴趣的可以试一下View Code for (int i=0; i<GetCOREInterface()->GetSelNodeCount(); i++) { Object * selectObject = ip->GetSelNode(i)->GetObjectRef(); TriObject *tri = (TriObject *)selectObject->ConvertToType(ip->GetTime(),Class_ID(TRI... 阅读全文
posted @ 2011-09-06 17:54 SITT 阅读(627) 评论(0) 推荐(0) 编辑
摘要: MaxScript里开不了线程,但是可以用.Net的BackgroundWorker来做后台处理BackgroundWorkerFn BackgroundTcpListenerDoWork theSender theEvent = ( IPAddress = DotNetClass "System.Net.IPAddress" theIPAddress = IPAddress.Parse "127.0.0.1" theTcpListener = DotNetObject "System.Net.Sockets.TcpListener" 阅读全文
posted @ 2011-08-31 12:53 SITT 阅读(1259) 评论(1) 推荐(0) 编辑
QQ聊天