^Lele^
03-26-2009, 11:13 AM
It's another one of those simple, silly things that should work, and for some reason do not.
I add a modifier, with a specific name, to a few objects, many times over.
So i get a stack of, say, five modifiers with the same name over the base object.
Then i want to parse a scene, and wipe those specific mods, however many an object has, in one go.
the code looks like this:
for o in objects do
(
for m in o.modifiers where m.name=="test" do
(
deleteModifier o m
)
)
Max (2008-64) removes three the first time i run the code, one the second, one the third.
I is baffled.
Notice it shouldn't be an issue with the mods having the same .name property, as i remove the modifier instance stored in the variable m.
Anyone with ideas on this wins unlimited gratitude :P
I add a modifier, with a specific name, to a few objects, many times over.
So i get a stack of, say, five modifiers with the same name over the base object.
Then i want to parse a scene, and wipe those specific mods, however many an object has, in one go.
the code looks like this:
for o in objects do
(
for m in o.modifiers where m.name=="test" do
(
deleteModifier o m
)
)
Max (2008-64) removes three the first time i run the code, one the second, one the third.
I is baffled.
Notice it shouldn't be an issue with the mods having the same .name property, as i remove the modifier instance stored in the variable m.
Anyone with ideas on this wins unlimited gratitude :P
