PC_reload (複数選択 point cache reloads)
-------------------------------+---------------------------------------------------------
-- Script Name: MonkeyTools------multi_cache_reload.ms
-- Started: 21 Nov 2014
-- Last Modified: 21 Nov 2014
-- Code by: Saori Yoshimoto
-- reload PC
----------------------------------------------------------------------------------------
out_filePath = "c:/3dsmax/scene/PC/"
obj = #()
count = 1
for selRow in selection do
(
obj[count] = selRow
count += 1
)
print count
for currentObj in obj do
(
--//Initialize File Path
select currentObj
out_fileName = out_filePath + currentObj.name as string + "/" + currentObj.name as string + ".xml"
print out_fileName
currentObj.modifiers[#Point_Cache].filename = out_fileName
cacheOps.Reload currentObj.modifiers[#Point_Cache]
gc()
)
-- Script Name: MonkeyTools------multi_cache_reload.ms
-- Started: 21 Nov 2014
-- Last Modified: 21 Nov 2014
-- Code by: Saori Yoshimoto
-- reload PC
----------------------------------------------------------------------------------------
out_filePath = "c:/3dsmax/scene/PC/"
obj = #()
count = 1
for selRow in selection do
(
obj[count] = selRow
count += 1
)
print count
for currentObj in obj do
(
--//Initialize File Path
select currentObj
out_fileName = out_filePath + currentObj.name as string + "/" + currentObj.name as string + ".xml"
print out_fileName
currentObj.modifiers[#Point_Cache].filename = out_fileName
cacheOps.Reload currentObj.modifiers[#Point_Cache]
gc()
)
0 コメント:
コメントを投稿