3dsmax DAOExporter.mcr 커스텀 엘더스크롤&NWN&DA

DAOExportEditedVer_1702.zip

1) included "BoneIndex"

bone_Used = getUsedBones()
local bone_Name = nodeObjs[i].name as name
local bone_Index = (finditem bone_Used bone_Name)-1 as integer

format "<Node Name=\"%\" BoneIndex=\"%\">\n" nodeObjs[i].name bone_Index to:out -- print the name of the node

=============================
2) NodeMesh's Name Convert (Hair Only)

local nm_name = meshObjs[m].name
local node_ck = findstring nm_name "HairM"
if ( node_ck != undefined ) then
(
nm_name = substring nm_name node_ck -1
)

format "<NodeMesh Name=\"%\" ID=\"_%%\" MeshGroupName=\"%\" " nm_name (random 0 9)(random 0 9) meshObjs[m].name to:out
=============================

3) fixed "mmh.xml & msh.xml"

if (out_name != undefined) then
(
local out_name_ck = findString out_name ".msh.xml.msh.xml"
if ( out_name_ck != undefined) then
(
out_name_ck = out_name_ck + 7
out_name = substring out_name 1 out_name_ck
)

out = createfile out_name
writeMSH out (getFilenameFile out_name) -- write the msh to specified file
)

4) fixed MESH_VERTEXDATA form

--== START PRINTING VERT NORMALS ==
local normal_float = "Float4"
local normal_true = true
local name_ck = findstring nonCollisionObjects[s].name "HairM1"
if ( name_ck != undefined ) then
(
normal_float = "Float3"
normal_true = false
)

format "<Data ElementCount=\"%\" Semantic=\"NORMAL\" Type=\"%\">\n" objNorms.count normal_float to:out -- print header of data using number of normals
printCDATA objNorms out 3 normal_true
format "</Data>\n" to:out-- print footer of data

덧글

댓글 입력 영역