khanat-opennel-code/code/nel/tools/build_gamedata/generators/max_exporter_scripts/swt.ms
2014-05-23 22:39:50 +02:00

28 lines
564 B
Text
Executable file

fn runNelMaxExport inputMaxFile =
(
outputNelFile = ("%OutputDirectory%/" + (getFilenameFile inputMaxFile) + ".%PreGenFileExtension%")
tagThisFile = false
-- Unhide category
unhidecategory()
-- Select all the nodes
max select all
-- Export the skeleton template
if NelExportSkeletonWeight ($selection as array) outputNelFile == false then
(
nlerror("ERROR exporting skeleton weight " + inputMaxFile)
tagThisFile = false
)
else
(
nlerror("OK " + outputNelFile)
tagThisFile = true
)
return tagThisFile
)