A_script_test

2010/07/20 20:39 / 3DsMax/Script





local theButtons = #(btn1, btn2, btn3, btn4, btn5, btn6) --이미지를 넣어줄 버튼입니다.
 
 fn updateButtons =
 (
  for i = 1 to theButtons.count do                              --버튼의 수를 계산해서 이미지를 넣어줍니다.
  (
   local theIndex = (i*2)-1
   theButtons[i].images = #(
    "pose_24i.bmp",                                                --버튼에 들어갈 이미지
    "pose_24a.bmp",                                               --이미지의 알파
    12, theIndex, theIndex, theIndex, theIndex, false, true)  --이미지에 있는 아이콘수, 그리고 인에이블 디스에이블 인아웃값과 블런.{정확히 이해도 못했고 가장 어려운 부분이였습니다. 설명은 헬퍼에 다 나와고요....}
   )
  )
 
  on apro open do updateButtons()  아이콘폴더에 이미지를 저장하고 스크립트를 열때마다 불러옵니다.



tn0 pressed  do
 (
 Targetcamera fov:45 nearclip:1 farclip:1000 nearrange:0 farrange:1000 mpassEnabled:off mpassRenderPerPass:off transform:(matrix3 [0,-1,0] [0,0,1] [-1,0,0] [-0.201,-76.114,29.912]) isSelected:on target:(Targetobject transform:(matrix3 [1,0,0] [0,1,0] [0,0,1] [-0.201,-9,18.985]))

        actionMan.executeAction 0 "219"  -- Tools: Show Safeframes Toggle
  actionMan.executeAction 0 "40068"  -- Views: Camera View
 
  )    --카메라 생성과 뷰포트 변경

 on btn1 pressed  do
 (
     sliderTime = 25f   프레임 이동 후 1024 싸이즈로 렌더링 그리고 정해둔 이름의PNG파일을 c:에저장
 renderWidth = 1024
 renderHeight = 1024
  render frame: 25 outputfile: "c:name_F.png"
 
 )
 반복,반복,반복~ ㅎㅎ


2010 버전입니다.
2010/07/20 20:39 2010/07/20 20:39
Posted by uforider.

Trackback URL : 이 글에는 트랙백을 보낼 수 없습니다


Leave your greetings here.

[로그인][오픈아이디란?]
« Previous : 1 : ... 8 : 9 : 10 : 11 : 12 : 13 : 14 : 15 : 16 : ... 31 : Next »