Community
3ds Max Programming
Welcome to Autodesk’s 3ds Max Forums. Share your knowledge, ask questions, and explore popular 3ds Max SDK, Maxscript and Python topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

VolumeSelect Crashes MaxScript when Modify Panel is Not Active and/or Other

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
361 Views, 0 Replies

VolumeSelect Crashes MaxScript when Modify Panel is Not Active and/or Other

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.

 

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report