CGTalk > Software Specific Forums > Autodesk 3ds max > 3dsMax SDK and MaxScript
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 02-19-2004, 05:55 PM   #1
loran
3dsmaxer
 
loran's Avatar
portfolio
laurent Renaud
Blender/3dsmax
France
 
Join Date: Feb 2004
Posts: 680
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 obj.name == selection[1].name then
(
testok = true
)

)
)
)
 
Old 02-19-2004, 08:48 PM   #2
Cthulhu
Piranha No.9
 
Cthulhu's Avatar
André Hotz
Lead Animator
Piranha-Bytes
Germany
 
Join Date: Jun 2002
Posts: 297
Send a message via MSN to Cthulhu
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!

Piranha-Bytes
Risen 2
3dsmax scripts


 
Old 02-20-2004, 07:41 AM   #3
loran
3dsmaxer
 
loran's Avatar
portfolio
laurent Renaud
Blender/3dsmax
France
 
Join Date: Feb 2004
Posts: 680
thx!!

that 's ok!!
thanks for your help Cthulhu

))
 
Old 01-17-2006, 12:00 PM   #4
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,481
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

All times are GMT. The time now is 05:18 PM.


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