khanat-opennel-code/code/nel/tools/build_gamedata/generators/max_exporter_scripts/swt.ms
kaetemi 96935c5be2 Added: #929 Generators for ecosystem projects, all four ecosystem projects, generators for max exporter scripts, rbank cmb export.
Changed: #929 Improved skipping of exported max files, corrected search paths for some tools configurations.
2010-09-03 12:37:35 +02:00

28 lines
564 B
Text

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
)