模型變形第一版(模型變形)

---1.前期建立面片完成,---2.定點射線完成,但是動態更新,現在還是沒有做。---3.現在就是對於morpher  的操作。還有就是skinwrap 的操作。--第一就是加入修改器。---補充 要想,變形物體後順利的刪除之情的面,兩個面。他們的變數必須要做出全域的,這個真的是很重要。--  之上的那一個步驟不用勸局, 就是在投射前,複製一個就好。為了下一步的操作fn g_filte_plane o = superclassof o == Geometryclass

對於法線包裹的 操作方法, 覺得用mesh 的點的法線方向,比poly的法線方向好使。

1. 對於poly 的法線方向這裡面我只是找到了面的, 用面在去標記點的方向的演算法, 我昨晚已經想了幾個小時, 不是很好在。如果想把任何一個平poly 物體都作為 法線投射的話,由於ploy 的構成的面的點具有不定性,所以我沒有想出來。2. 對於mesh 的就是很好用, 首先  (1)法線的可見度。   (2)各個層次 的可見率很高。   (3) 函數的多性。 在mesh 裡面提供了 點的射線函數, 效果很好。mesh 的頂點座標的求法。 meshop.getVert $ 6

看了指令碼後才知道是怎麼把三邊轉四邊。

rollout 三角面轉四邊形 "三角面轉四邊形" width:179 height:44( button btn4 "三角面轉四邊形" pos:[20,6] width:136 height:27 on btn4 pressed do (disablesceneredraw()cobjs = selection.countcobjset=#()for i = 1 to cobjs do (cobjset[i] = selection[i])tb = Bomb strength:0

模型變形第一版 (模型包裹)

-----上面就是我已經成功的做了相應的東西。變形通道,滑塊的係數都做好。-----開始想做一部分下來的手工操作,想在想想,還是全部指令碼話處理。-----這裡已經啟用了,滑塊的研究。-----1.下來就是加入包裹-----2.如果可以的話,塌陷線包裹模型。刪除兩個片面,-----3.要包裹的模型在這裡面也要設定成一個全域函數。為了以後 的塌陷邊。global gt_global_skin_wrap_mode = undefined  fn gt_pick_skin_wrap_count = (

模型變形第一版,(射線完成)

--  target_mesh = pickObject message:"Pick Target Surface:" filter:g_filter  rubberBand:selection.center  rubberBandColor:green ---

指令碼管理計劃,臨時計劃。

2011.5.7 日   以後的指令碼文字的調用過程是這樣的。在  function 中 都是事件函數,(指令碼開發完成後,整理到裡面。) 介面寫在scripts_ui 中,在用 scripts_ui  去調用函數, 介面ui 就是現實在介面中的用寫到display_ui 中,   最後用宏指令碼在去調用。 之後的指令碼這樣做的話,是有好處是, 函數的可重用性就會大大提高,還有就是把函數寫成協助的形式,  對於介面一般都是唯一的寫在 scripts_ui 就好。

dos 讀取建立檔案。

fn getEnvironmentPaths =( dosCommand "path >enddv.txt" -----在max 目錄中建立一個檔案 --- 並自動的處理檔案的名字 path_array = #()  in_text = openfile "enddv.txt" --開啟這個檔案 進行處理 skipToString in_text "="  ----再來在數組中就去掉了等號,這個看似很好, --skiotistring  skipToString in_text "c"  

改變軸心的操作。

View Code /*Script: Cycle_CoordinateCenterSummary:Cycles through the various coordinate center options...Local Center (pivot point), Selection Center, and Transform Center. Once assigned to a hot-key, it will advance each time you press the

好的寫法 數組唯一化, 這個是多麼的簡單,。

fn CopyArr arr = return for el in arr collect el  --------------------------- fn OptimisedArr arr =   (  local newArr = #()    for el in arr where (findItem newArr el == 0) do   append newArr el     return newArr )--其實吧數組在倒騰一下就好, 這個很經典,

開啟外部檔案的幾種 文法, openFile [ mode: ]

openFile <filename_string> [ mode:<mode_string> ] 文法     文法預設是,rt - read-only text - file must exist 唯讀檔案,檔案必須存在。這個是關鍵點。 r - read-only text - file must exist 唯讀檔案 檔案必須存在。rb - read-only binary - file must exist 唯讀二進位檔案,檔案必須存在。r+ -

路徑的相關操作用的時候在這裡看

 pathConfig.GetDir 和 GetDir 用法是一樣的 但是  pathConfig.GetDir 又引出了很多的東西pathConfig.doProjectSetupSteps() 用於瀏覽檔案夾操作,pathConfig.doProjectSetupStepsUsingDirectory "c:\\" 改變使用路徑。pathConfig.getCurrentProjectFolder()

轉載渲染。

rollout renderpictrue "render" width:162 height:300(   spinner spn2 "" pos:[70,80] width:46 height:16 range:[0,10000,640] type:#integer scale:1    spinner spn3 "" pos:[70,100] width:46 height:16 range:[0,10000,480] type:#integer scale:1   button btn1

Aim.ms

/* LookAt is a script for "aiming" objects at other objects via the Look-At controller. It is designed to work with multiple objects and can modify the Look-At settings as well as remove the controller, returning it to its original state.Author:

都快忘了格式 解釋一兩句。

plugin helper getsetHandlerTest name:"DummyEx" classID:#(1453456,5432110) category:"Scripted Primitives" extends:dummy(parameters main rollout:params( --type:#node subAnim:truefill type:#node subAnim:true   ----這裡是內部名字還有類型 在在下面叫他等於 控制項的名字。back type:#

把節點歸零處理

View Code /*Basic_ListCNT is designed to set up a simple list controller set-up on all selected objects.It creates a list controller on both rotation and position with a zero track and an animation track.*/---2011.7.15 蓋天解釋---用於做動畫的時候

。net 列框寫字

theFrm = dotNetObject "MaxCustomControls.MaxForm"theBox = dotNetObject "MaxCustomControls.MaxTextBox"theBox.width = 290theBox.height = 270theBox.Multiline = truetheBox.Text = "Hey Jude, don't make it bad!\r\nTake a sad song and make it

poly 定點於mesh定點的法線對其,非開做比較好,要是來迴轉很費時間, 介面還打傷元氣

---工具這樣來回的傳還是覺得不是很方便,---我想如果是mesh 就做mesh 的事情,是poly 就做poly 的事情--這樣就會好,畫面就不更新 頻繁了,還有 點的的對其好事用 自身的號, vertesArray =#()   NamlArray =#() if classOf $ == Editable_mesh then (  if subobjectLevel==1  then (   dateArray =  getVertSelection $  dateArray =

螢幕座標的方法

View Code /*Script: Cycle_CooridinateSpaceSummary:Cycles through the "View", "Screen", "World", "Parent", and "Local"coordinate space. Once assigned to a hot-key, it will advance each time you press the button.Author: Chris Harvey*/---2011.7.15

max 檔案匯入效果。

thePath = getSavePath() --get a path dialog to specify the pathif thePath != undefined do --if the user did not cancel(theFiles = getFiles (thePath+"\\*.max") --collect all max files in the dir.for f in theFiles do --go through all of

點邊同事移除的辦法處理。

View Code /*DissolveEdge.ms over comes the problem of leaving the old vertices behind when you remove an edge using the edible poly command... - this should only be used on edge loops as results will be undesirable otherwise - select an edge

總頁數: 61357 1 .... 9437 9438 9439 9440 9441 .... 61357 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.