马上注册,加入CGJOY,让你轻松玩转CGJOY。
您需要 登录 才可以下载或查看,没有帐号?立即注册
×
完全代码如下: - macroScript jianmian
- category:"MAX Script Tools"
- tooltip:"jian mian"
- buttonText:"超级减面 v1.0"
- (
- global GR_jianmian
- rollout jianmian "超级减面" width:264 height:64
- (
- -------界面区-----------------------------------------------
- edittext edt_jj "" pos:[79,24] width:90 height:18
- pickbutton btn_jst "就是它" pos:[14,23] width:63 height:21
- button xu "我要方边" pos:[179,23] width:69 height:21
- groupBox grp4 "" pos:[6,2] width:253 height:56
- ----界面操作---------
- on btn_jst picked obj do
- (
- edt_jj.text=btn_jst.object.name
- selectObj = btn_jst.object
- )
- on xu pressed do
- (
- Bomb strength:0 gravity:1 detonation:0f minFragmentSize:2 maxFragmentSize:1 falloff:100 pos:[43.1105,-40.3892,0] isSelectedn
- $.name = "xx"
- select btn_jst.object
- bindSpaceWarp $ $xx
- m = snapshot btn_jst.object
- select m
- subobjectLevel = 2
- ------meshop.autoEdge $.baseObject $.Edges 24.0 选择所有边不可见----------
- meshop.autoEdge $.baseObject $.Edges 24.0
- delete $xx
- delete btn_jst.object
- macros.run "Modifier Stack" "Convert_to_Poly"
- subobjectLevel = 1
- modPanel.setCurrentObject $.baseObject
- --------numv = $.numverts $.EditablePoly.SetSelection #Vertex #{1..numv} 选择所有的点不论大小------------
- numv = $.numverts
- $.EditablePoly.SetSelection #Vertex #{1..numv}
- $.weldThreshold = 0.002
- $.EditablePoly.weldFlaggedVertices ()
- subobjectLevel = 0
- modPanel.setCurrentObject $.baseObject
- )
- )
- GR_jianmian = newRolloutFloater "Jian mian v.1.0" 267 90
- addRollout jianmian GR_jianmian
- )
- ----- mutou8----
复制代码
|