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.
crystal3d's picture

same error for me too

-- [stack level: 1]
-- called from top-level
-- Error occurred in anonymous codeblock; filename: ; position: 134; line: 3
-- No "map" function for undefined
-- MAXScript callstack:
-- thread data: threadID:26876
-- ------------------------------------------------------
-- [stack level: 0]
-- In anonymous codeblock; filename: ; position: 135; line: 3
-- Locals:
-- scenecontainers: undefined
-- Externals:
-- ------------------------------------------------------
-- [stack level: 1]
-- called from top-level
-- Error occurred in anonymous codeblock; filename: ; position: 134; line: 3
-- No "map" function for undefined
-- MAXScript callstack:
-- thread data: threadID:26876
-- ------------------------------------------------------
-- [stack level: 0]
-- In anonymous codeblock; filename: ; position: 135; line: 3
-- Locals:
-- scenecontainers: undefined
-- Externals:
-- ------------------------------------------------------
-- [stack level: 1]
-- called from top-level

barigazy's picture

...

simply try this

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

bga

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.