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.
Forum topic · General Scripting
By mickeplt · 2015-03-19
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.
same error for me too
crystal3d · 2023-10-30
-- [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 · 2015-04-25
simply try this
if (scenecontainers = getClassInstances Container).count > 0 do
(
select (for c in scenecontainers where c.updateNeeded collect c)
)
mickeplt · 2017-04-07
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.