Dummy

선택한 오브젝트의 바운딩바스크리로 더미를 만드는 기능

fn makeBBox obj =
(
	b = obj
	objMT = b.transform
	b.transform = matrix3 1


	bbSize = b.max - b.min
	getDummy = dummy boxsize:bbSize

	valDelta = b.center - getDummy.center
	getDummy.pos += valDelta

	getDummy.pivot = b.pivot

	b.transform = objMT
	getDummy.transform = objMT
)

for i in selection do 
(
	makeBBox	i
)

getclassinstances

http://docs.autodesk.com/3DSMAX/14/JPN/Rampage%20MAXScript%20Guide/index.html?url=files/GUID-D1D7EB56-A370-4B07-99B4-BC779FB87CA-739.htm,topicNumber=d28e255884

■ class만 얻기
getList = getclassinstances  dummy
for i in getList do
(
 print (classof i )

)

■ TrackViewPick만 얻기
getList = getclassinstances  dummy asTrackViewPick:true
for i in getList do
(
 print (classof i)
)

■ 여러가지 방법
getList = getclassinstances  dummy asTrackViewPick:true
for tvp in getList do
(
 print “————–”
 print tvp.anim
 print tvp.client
 print tvp.subNum
 print tvp.name
 print tvp.client[tvp.subNum]
)

■ dummy node 의 이름 얻기.
getList = getclassinstances  dummy asTrackViewPick:true
for i in getList do
(
 print i.client.name
)