PC_load (複数選択 point cache loads)


-------------------------------+---------------------------------------------------------
-- Script Name: MonkeyTools------multi_cache_load.ms
-- Started:       29 Jan 2013
-- Last Modified:  29 Jan 2013
-- Code by: Saori Yoshimoto
--?????????1???WPC?????????????
----------------------------------------------------------------------------------------

recStart = 1381
recEnd = 2221
recsampleRate = 1
out_filePath = ""c:/3dsmax/scene/PC/"

for i in selection do
(
 --//Initialize File Path

out_fileName =  out_filePath + i.name as string + "/" + i.name as string + ".xml"
print out_fileName

--//Set PointCache() -- local cordinate --

addModifier i (pointCache()) --before:(i.modifiers.count)
i.modifiers[#Point_Cache].filename = out_fileName
i.modifiers[#Point_Cache].fileCount = 1
i.modifiers[#Point_Cache].recordStart = recStart
i.modifiers[#Point_Cache].recordEnd = recEnd
i.modifiers[#Point_Cache].sampleRate = recsampleRate

)

0 コメント:

コメントを投稿