Anyone got a workaround for the following problem/conditions?
In Max 2012, the following script will work fine as part of some function:
v = volumeselect level:2 type:0 method:0 volume:0
addmodifier obj v
select obj
v.gizmo.scale = [1,1,1]
In Max 2014, it will throw an unknown system exception and crash if the Modify panel is not active! Max itself doesn't crash, but the script does.
Even worse: in both Max 2012 AND Max 2014, the following script will also throw unknown exception if the Modify panel is not active:
select obj
volSel = volumeselect level:2 type:0 method:0
addmodifier obj volSel
volSel.volume = 3
volSel.Node = boxVol
Notice the one that breaks in both 2012 and 2014 is using a node as a volume.
The second script can be fixed to not crash by changing it to this:
select obj
volSel = volumeselect level:2 type:0 method:0
addmodifier obj volSel
volSel.volume = 3
max modify mode
max create mode
volSel.Node = boxVol
But, of course, making the modify panel active makes the script dog slow. It takes 100x longer to get any processing done.
Anyone got a workaround for this?
This seems like an awfully major bug that Autodesk needs to be working on.