I’m only allowed to have a 5 minutes ‘stretch time’ per day. Uh oh, I hear the boss coming! I better go or it’ll get reduced to 2 minutes.
A quick update on this. Trying to copy the modifiers and rebuild the stack causes a lot of problems when they are reapplied to the object (skin weights wiped out, vert count changes from edit poly mods).
Instead, you have to get the index of where you want to place your modifier, then with the modify panel open, use modPanel.addModToSelection.
Long day :(.
the stack looks like this and this code executes with no problem
s = Sphere()
f = Edit_Poly()
t = TurboSmooth()
addmodifier s f
addmodifier s t
addModifier s (point_cache()) before:2
i had to change the $ with the variable cause i didn’t select anything
but as your first post goes … i didn’t get any exceptions when i created things manually
one thing happened though , when i put e = Edit_Poly() i get
– Cannot assign to read-only variable: e
You have to do it in the right order, which is weird. I just got it to error on my home machine, try this:
- Create a sphere
- Add a turboSmooth modifier
- Add an edit poly modifier
- Move the edit poly below turboSmooth
- Execute : addModifier $ (point_cache()) before:2
This should cause a system exception. If you simply apply the edit poly first, then add a turboSmooth, it won’t crash (even though both result in the same stack).
I confirm !
modifierstack now shows nothing even for a newly created objects
you can get over this “if you have it” by resumeEditing()
another interesting thing to note:
if create the sphere add the turbo smooth modifer then add the editpoly on top like jason said then move the turbo smooth modifer on top which you do in 2 ways :
a) either drag the turbo smooth modifer up
b) drag the edit poly modifier down
if do it by method a) then execute the command
addModifier $ (point_cache()) before:2
there is no system execption but if do by method b) then execute the command
addModifier $ (point_cache()) before:2
theres system exception
Lol theres should be a book on mysteries about max