上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 49 下一页
摘要: string $sel[]=`ls -sl`;print("选中"+ size($sel) +"个物体");通过 Wiz 发布 阅读全文
posted @ 2012-06-05 08:18 XE2011 阅读(143) 评论(0) 推荐(0)
摘要: // create joint int $count=10;//创建骨骼数量for($i=0;$i<$count;$i++){ //创建joint joint -p 0 0 $i -name joint1;} //修改radius大小 select -r |joint1 ; select -hi;通过 Wiz 发布 阅读全文
posted @ 2012-06-05 08:18 XE2011 阅读(131) 评论(0) 推荐(0)
摘要: :convertfile@IF %1 == "" GOTO endimf_copy -p %1 "%~d1%~p1%~n1.map"@SHIFT@GOTO convertfile:end@ECHO.@ECHO Done!@pause通过 Wiz 发布 阅读全文
posted @ 2012-06-05 08:18 XE2011 阅读(94) 评论(0) 推荐(0)
摘要: window -t "" mywnd;columnLayout -adj 1;button -l "Deselect" -command "delselect";button -l "randY" -command "randy";proc delselect()//在所选中的物体中取消选中一些物体{ string $sel[]=`ls -sl`; for($i=0;$i<size($sel);$... 阅读全文
posted @ 2012-06-05 08:18 XE2011 阅读(145) 评论(0) 推荐(0)
摘要: //////////////////////////////////////////////////////////////////////////////////////////////////// //// Rock Generator2.5 ... 阅读全文
posted @ 2012-06-05 08:18 XE2011 阅读(259) 评论(0) 推荐(0)
摘要: //randomstring $sel[]=`ls-sl`;for($i=0;$i<size($sel);$i++){ float$y=rand(0,1); setAttr ($sel[$i]+".translateY") $y;} //对所中的物体 随机选中一些物体通过 Wiz 发布 阅读全文
posted @ 2012-06-05 08:18 XE2011 阅读(125) 评论(0) 推荐(0)
摘要: global proc playBlastWin(){if (`window -ex playBlastWin`)deleteUI playBlastWin;window -t "拍屏窗口 beta 0.1" playBlastWin;columnLayout -enable 1 -cw 300 -h 200 -adj 1 -columnAlign "left" mainCol;textField... 阅读全文
posted @ 2012-06-05 08:18 XE2011 阅读(378) 评论(0) 推荐(0)
摘要: /*ParentShapes粘贴要被parent的物体*/string $promptDialogWnd = ` promptDialog -b "Go" -m "Parent It"`;//-b -buttonstring $sel[] = ` ls -sl `;//ls list -sl -seletionfor( $shapes in $sel ){ string $lsRelatives[... 阅读全文
posted @ 2012-06-05 08:18 XE2011 阅读(107) 评论(0) 推荐(0)
摘要: // 物体随机排列; // by居燕虹 2004.3global proc objectRand(){string $selectObject[]=`ls-sl`;int$amount=size($selectObject) ;if($amount==0) error"Please select the object ";if(`window-exists objectRand`) { delet... 阅读全文
posted @ 2012-06-05 08:18 XE2011 阅读(245) 评论(0) 推荐(0)
摘要: //maya批量命名(如果对同一个物体多次操作相同的名称返回值会出现问题)string $ResultValue =`promptDialog -title "批量重命名" -message "输入名称" -button "Ok" -button"Cancel" -defaultButton"Ok"`;string $textResponse = `promptDialog -q`;//以下是重命... 阅读全文
posted @ 2012-06-05 08:18 XE2011 阅读(541) 评论(0) 推荐(0)
摘要: //KeySelected 快捷键建议用astring $myObjects[]=`ls -sl`;string $myAttr[]=`channelBox -q -sma mainChannelBox`;for($myNode in $myObjects){for($myNodeAttr in $myAttr){ setKeyframe($myNode+"."+$myNodeAttr);}}/*... 阅读全文
posted @ 2012-06-05 08:18 XE2011 阅读(131) 评论(0) 推荐(0)
摘要: #include <stdio.h>#include <ctype.h>#include <conio.h>void main() { char letter; // Letter typed by the user printf("Do you want to continue? (Y/N): "); letter = getch(); // Get the letter letter = t... 阅读全文
posted @ 2012-06-04 12:30 XE2011 阅读(112) 评论(0) 推荐(0)
摘要: #include <stdio.h>void main(void) { char *weekdays[7] = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"}; int i; for (i = 0; i < 7; i++) printf("weekdays[%d] contains %s\... 阅读全文
posted @ 2012-06-04 12:30 XE2011 阅读(92) 评论(0) 推荐(0)
摘要: #include <conio.h>void main(void) { int row, column; clrscr(); cprintf("This is line 1\r\n"); cprintf("Line 2 is a little longer\r\n"); cprintf("This is the last line"); row = wherey(); column = where... 阅读全文
posted @ 2012-06-04 12:30 XE2011 阅读(99) 评论(0) 推荐(0)
摘要: #include <stdio.h>void main(void) { enum { Monday, Tuesday, Wednesday, Thursday, Friday } day; for (day = Monday; day <= Friday; day++) if (day == Monday) printf("No fun---meetings all day Monday\n");... 阅读全文
posted @ 2012-06-04 12:30 XE2011 阅读(132) 评论(0) 推荐(0)
上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 49 下一页