loran
02-19-2004, 04:55 PM
I have to visually control hundreds objects of a scene one by one (all at the same position 0,0,0)
I would do a script that show each objects of the scene individually by pressing a button "next".
the script unhide the first object, then by pressing the button hide the first and show the next object...etc
any suggestion?
here is my test that failed ://
-------------------------------------------------------------------------------
utility massexport "object controler"
(
button doit "show NEXT"
on doit pressed do
(
testok = false
for obj in objects do
(
if testok == true then
(
max unhide all
select obj
max hide inv
)
if obj.name == selection[1].name then
(
testok = true
)
)
)
)
I would do a script that show each objects of the scene individually by pressing a button "next".
the script unhide the first object, then by pressing the button hide the first and show the next object...etc
any suggestion?
here is my test that failed ://
-------------------------------------------------------------------------------
utility massexport "object controler"
(
button doit "show NEXT"
on doit pressed do
(
testok = false
for obj in objects do
(
if testok == true then
(
max unhide all
select obj
max hide inv
)
if obj.name == selection[1].name then
(
testok = true
)
)
)
)
