Select only the containers to update

Hallo everybody!
I have a lot of containers in many scenes. Is there a method for select only the containers witch need to update?

Someone save my life and my brain! Thanks.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
barigazy's picture

...

simply try this

if (scenecontainers = getClassInstances Container).count > 0 do
(
	select (for c in scenecontainers where c.updateNeeded collect c)
)

barigazy

mickeplt's picture

thank for reply, if I try

thank for reply,
if I try this code 3dsmax generate an error:

-- Error occurred in anonymous codeblock; filename: ; position: 133; line: 3
-- Runtime error: operation requires a collection of nodes, got: Container
-- MAXScript callstack:
-- thread data: threadID:21500
-- ------------------------------------------------------
-- [stack level: 0]
-- In top-level
-- Error occurred in anonymous codeblock; filename: ; position: 133; line: 3
-- Runtime error: operation requires a collection of nodes, got: Container
-- MAXScript callstack:
-- thread data: threadID:21500
-- ------------------------------------------------------
-- [stack level: 0]
-- In top-level

any ideas?
thanks.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.