scene objects controler

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
Old 02 February 2004   #1
scene objects controler

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 == selection[1].name then
testok = true

Old 02 February 2004   #2
you simply forgot to exit the loop after selecting the new object. also you do have to do some checks if you want to restart at the first object when the last one is selected.

this would be an easier way to doit:

on doit pressed do
curSel = finditem (objects as array) selection[1]
if curSel == objects.count then curSel -= 1 -- or curSel = 0 if you want to loop
max unhide all
select objects[cursel+1]
max hide inv

Don't panic!

Risen 2
3dsmax scripts

Old 02 February 2004   #3

that 's ok!!
thanks for your help Cthulhu

Old 01 January 2006   #4
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 04:06 PM.

Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.