Morpher

모프의 타켓이름 얻기.

 

 mops = getclassinstances Morpher
 for i in mops do
 (
  for j = 1 to 100 do
  (
   getName = (WM3_MC_GetName i  j)
   print getName
  )
 )

 

———————————————————-
– Morpher Slot
———————————————————-

mops = getclassinstances Morpher
mops[1].Spinner_Minimum
mops[1].Spinner_Maximum
mops[1].Use_Limits 
mops[1].Use_Selection
mops[1].Value_Increments
mops[1].Autoload_of_targets

WM3_MC_GetLimitMAX mops[1] 2

 
– morpehr slot / gety Name
WM3_MC_GetName  mops[1]  1
WM3_MC_GetName  mops[1]  2

– morpehr slot / set Name
WM3_MC_SetName mops[1]  1 “aaaaa”
– morpehr target / get Name
WM3_MC_GetTarget mops[1]  1

Modifiers Base

■ 오브젝트의 모든 모디파이어 알아내기
getList = $Sphere002.modifiers
for i in getList do (print i)

■ 인덱스로 알아내기
$Sphere002.modifiers[1]

■ 노드이름으로 알아내기
$Sphere002.modifiers[#Affect_Region]

■ 파라미터 수치 퀄리와 적용
$Sphere002.modifiers[#Skew].upperlimit
$Sphere002.modifiers[#Skew].lowerlimit = -25
————————————————
■ 

$Sphere002.modifiers[1].name
$Sphere002.modifiers[1].enabled
$Sphere002.modifiers[1].enabled = false
$Sphere002.modifiers[1].enabledInViews
$Sphere002.modifiers[1].enabledInViews = false
$Sphere002.modifiers[1].enabledInRenders
$Sphere002.modifiers[1].enabledInRenders = false

 

 

————————————————————–
■ 모디파이 모드로 탭을 전환
max modify mode
max display mode

————————————————————–
■ 오브젝트에 모디파이어를 추가할 수 있는가?
validModifier $Sphere002 taper
■ 모디파이어 추가
NG: addModifier $Sphere002 taper()
addModifier $Sphere002 (taper())
addModifier $Sphere002 (twist()) before:1
index는 0부터 시작

■ 모디파이어 제거
deleteModifier $Sphere002 1
index 는 1부터 시작.

■ 모디파이어 결합
collapseStack  $Sphere002

————————————————————–
■ 모디파이어 local 좌표의 transform
getModContextTM $Sphere002 $Sphere002.modifiers[1]
-> (matrix3 [1,0,0] [0,1,0] [0,0,1] [0,0,0])

■ 모디파이어의 min max 바운딩박스를 world 좌표로 얻는다.
getModContextBBoxMin $Sphere002 $Sphere002.modifiers[1]
getModContextBBoxMax $Sphere002 $Sphere002.modifiers[1]

Mesh Editing

getclassinstances Cap_Holes
getclassinstances DeleteMesh
getclassinstances Edit_Mesh
getclassinstances Edit_Normals
getclassinstances Edit_Poly
getclassinstances Face_Extrude
getclassinstances MultiRes
getclassinstances Normalmodifier
getclassinstances Optimize
getclassinstances ProOptimizer
getclassinstances Quadify_Mesh
getclassinstances Smooth
getclassinstances STL_Check
getclassinstances Symmetry
getclassinstances Tessellate
getclassinstances VertexPaint
getclassinstances Vertex_Weld

Animation

–getclassinstances Attribute_Holder
getclassinstances Flex
getclassinstances Linked_XForm
getclassinstances Melt
getclassinstances Morpher
getclassinstances PatchDeform
getclassinstances PathDeform
getclassinstances Skin
getclassinstances Skin_Morph
getclassinstances Skin_Wrap
getclassinstances Skin_Wrap_Patch
getclassinstances SurfDeform
getclassinstances Patch_Deform_Binding
getclassinstances Path_Deform_Binding
getclassinstances Surf_Deform_Binding