Notifications
Clear all

[Closed] addModifier causing system exception

hello, I am having trouble with the following line of code:

addModifier $theCell (Vol__Select ()) before:7

It gives me a system exception error in the listener and the Modifier panel breaks for all objects! If I change it to before 1,2, or 3 it is OK, but past that it craps out. I am using Max2009 and debugging this is very difficult, as I have to restart Max to get the Modifier panel back every time. I am trying to place it below a UVW Unwrap, which gives me that pop-up dialog asking me if I want to continue when I do it manually. Could this be the source of my problem? If so, what is a work around? Please help, I am on a tight deadline with this one and my wrist will be on fire if I have to do this manually for all my objects.

For clarification, the stack looks like this:

TurboSmooth
Noise
FFDbox
UVW Mapping (channel 2)
UVW Unwrap (channel 3)
UVW Unwrap (channel 1)
Morpher
Editable Poly

I want to put the Volume Select directly above the Editable Poly, please help!

2 Replies

I didn’t get a crash here, but it’s only a simple test scene (same modifier stack as you used; but you know how that goes…); 3ds Max 2009×32.


test = sphere name:"theCell"
addModifier test (Morpher())
addModifier test (Unwrap_UVW())
addModifier test (Unwrap_UVW())
addModifier test (Uvwmap())
addModifier test (FFDBox())
addModifier test (Noisemodifier())
addModifier test (TurboSmooth())
addModifier $theCell (Vol__Select ()) before:7

Could you try with a simple setup (create a sphere, apply the modifiers you mentioned, then run your code)? If that doesn’t crash, it’s something more specific to your scene and finding the cause would be nearly impossible.

A possible workaround might be in storing all the modifiers on the object, removing them, adding your volume select, and then adding the old ones back in?

hi ZeBoxx2, thanks for the reply. I tried your code in a blank scene and it worked fine on the first go. But then I deleted the volume select and added a morph target and turned the amount up to 100. Then when I tried to add the Volume Select again I got the error. :banghead:

I will definitely try your suggestion of storing the modifiers and re-adding, I think that might work.

Thanks again.