Maxscript selection clear fix

This commit is contained in:
kaetemi 2014-08-16 14:51:29 +02:00
parent f718380f52
commit 5bc60987be
15 changed files with 19 additions and 0 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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