Last one. Script works now.
'Flip the scene objects along Z axis for exporting to Dark Basic Pro
'Note: boned/skinned, animated characters cannot be flipped.
'started on 17-08-07
'By Jason Wells aka Redmotion
dim name, flipper, list
set list = GetValue( "SelectionList" )
if list.count = 0 then
MsgBox "Please select at least one polymesh object first!!"
else
'do the the flip!
set flipper = CreatePrim( "Cube", "MeshSurface" )
for each item in list
logmessage item.name
name = item.name
'if item.type = "polymsh" then
SelectObj name, , True
CopyPaste name, , flipper , 1
SelectObj name, , True
next
Scale flipper, 1, 1, -1, siAbsolute, siPivot, siObj, siXYZ, , , , , , , , 0
for each item in list
logmessage item.name
name = item.name
CopyPaste item, , "Scene_Root", 1
ResetTransform item.name, siCtr, siSRT, siXYZ
SelectObj name, , True
FreezeObj
next
DeselectAll
DeleteObj flipper
All objects should have their transforms frozen and the freeze button worked on them before running.
If the objects are not flipping you haven't frozen all the transforms. Select an object and check on the transform panel that ALL transforms and rotations are 0,0,0 and that scale is 1,1,1. It won't work properly otherwise.
It doesn't work with SRT animated objects however, although I'm looking into it.