Maxscript selection clear fix

hg/feature/cdb-packed
kaetemi 10 years ago
parent f718380f52
commit 5bc60987be

@ -56,6 +56,7 @@ fn runNelMaxExport inputMaxFile =
-- unselect -- unselect
max select none max select none
clearSelection()
-- Exported object count -- Exported object count
exported = 0 exported = 0

@ -36,6 +36,7 @@ fn runNelMaxExport inputMaxFile =
-- Select all collision mesh -- Select all collision mesh
max select none max select none
clearSelection()
for m in geometry do for m in geometry do
( (
if (isToBeExported m) == true then if (isToBeExported m) == true then

@ -61,6 +61,7 @@ fn runNelMaxExport inputMaxFile =
-- unselect -- unselect
max select none max select none
clearSelection()
-- Exported object count -- Exported object count
exported = 0 exported = 0
@ -109,6 +110,7 @@ fn runNelMaxExport inputMaxFile =
( (
-- Select none -- Select none
max select none max select none
clearSelection()
-- Select all node in this ig -- Select all node in this ig
for node in geometry do for node in geometry do

@ -10,6 +10,7 @@ fn runNelMaxExport inputMaxFile =
-- Select none -- Select none
max select none max select none
clearSelection()
-- Select all PACS primitives -- Select all PACS primitives
for i in geometry do for i in geometry do

@ -199,6 +199,7 @@ fn runNelMaxExportSub inputMaxFile retryCount =
-- unselect -- unselect
max select none max select none
clearSelection()
-- Exported object count -- Exported object count
exported = 0 exported = 0

@ -46,6 +46,7 @@ fn runNelMaxExport inputMaxFile =
-- unselect -- unselect
max select none max select none
clearSelection()
-- Exported object count -- Exported object count
exported = 0 exported = 0

@ -40,6 +40,7 @@ fn runNelMaxExport inputMaxFile =
-- Select none -- Select none
max select none max select none
clearSelection()
-- Found it ? -- Found it ?
find = false find = false

@ -122,6 +122,7 @@ fn runNelMaxExport inputMaxFile =
-- unselect -- unselect
max select none max select none
clearSelection()
-- Exported object count -- Exported object count
exported = 0 exported = 0

@ -127,6 +127,7 @@ fn runNelMaxExport inputMaxFile =
-- unselect -- unselect
max select none max select none
clearSelection()
-- Exported object count -- Exported object count
exported = 0 exported = 0
@ -175,6 +176,7 @@ fn runNelMaxExport inputMaxFile =
( (
-- Select none -- Select none
max select none max select none
clearSelection()
-- Select all node in this ig -- Select all node in this ig
for node in geometry do for node in geometry do

@ -228,6 +228,7 @@ fn exportCollisionsFromZone outputNelDir filename =
( (
-- Select all collision mesh -- Select all collision mesh
max select none max select none
clearSelection()
for m in geometry do for m in geometry do
( (
if (isToBeExportedCollision m) == true then if (isToBeExportedCollision m) == true then
@ -311,6 +312,7 @@ fn exportInstanceGroupFromZone inputFile outputPath igName transitionZone cellSi
-- unselect -- unselect
max select none max select none
clearSelection()
-- Exported object count -- Exported object count
exported = 0 exported = 0
@ -372,6 +374,7 @@ fn exportInstanceGroupFromZone inputFile outputPath igName transitionZone cellSi
( (
-- Select none -- Select none
max select none max select none
clearSelection()
for node in objects where classOf node == XRefObject do for node in objects where classOf node == XRefObject do
( (

@ -76,6 +76,7 @@ fn runNelMaxExport inputMaxFile =
-- Select none -- Select none
max select none max select none
clearSelection()
-- Select all PACS primitives -- Select all PACS primitives
for i in geometry do for i in geometry do

@ -102,6 +102,7 @@ fn runNelMaxExport inputMaxFile =
-- Select all collision mesh -- Select all collision mesh
max select none max select none
clearSelection()
for m in geometry do for m in geometry do
( (
if (isToBeExported m) == true then if (isToBeExported m) == true then

@ -265,6 +265,7 @@ fn runNelMaxExportSub inputMaxFile retryCount =
-- unselect -- unselect
max select none max select none
clearSelection()
-- Exported object count -- Exported object count
exported = 0 exported = 0

@ -112,6 +112,7 @@ fn runNelMaxExport inputMaxFile =
-- unselect -- unselect
max select none max select none
clearSelection()
-- Exported object count -- Exported object count
exported = 0 exported = 0

@ -103,6 +103,7 @@ fn runNelMaxExport inputMaxFile =
-- Select none -- Select none
max select none max select none
clearSelection()
-- Found it ? -- Found it ?
find = false find = false

Loading…
Cancel
Save