khanat-opennel-code/code/nel/tools/build_gamedata/generators/max_exporter_scripts/skel.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

53 lines
1 KiB
Text

fn runNelMaxExport inputMaxFile =
(
outputNelFile = ("%OutputDirectory%/" + (getFilenameFile inputMaxFile) + ".%PreGenFileExtension%")
tagThisFile = false
-- Unhide category
unhidecategory()
-- Select Bip01, not very smart
if $Bip01 != undefined then
(
-- Select Bip01
select $Bip01
if ($ != undefined) then
(
-- Set figure mode on
if ((classof $) == Biped_Object) then
(
$.controller.figureMode = true
)
-- Export the skeleton template
if (NelExportSkeleton $ outputNelFile) == false then
(
nlerror("ERROR exporting skeleton " + inputMaxFile)
tagThisFile = false
)
else
(
nlerror("OK " + outputNelFile)
tagThisFile = true
)
)
else
(
-- Error
nlerror("ERROR exporting skeleton: no Bip01 node in file " + inputMaxFile)
tagThisFile = false
)
)
else
(
-- Error
nlerror("ERROR exporting skeleton: no Bip01 node in file " + inputMaxFile)
tagThisFile = false
)
return tagThisFile
)