Forum Groups
  All forums
    Help & Feedback
      Work in progress
      Finished Art
      Non-Max related

Maxunderground news unavailable

system exception (maxscript)
show user profile  aca88

can anyone figure out why do i get an instant **system exception** here ??


i use max2012

fn UnifyTwoObjects obj1 obj2 theName =
if obj1 != undefined AND obj2 != undefined do
local NewObj

NewObj = copy obj1
NewObj = NewObj + obj2
if theName != undefined do = theName

)catch( print "No objects for boolean operation")

seed 12345

for i in 0 to 20 do
b = box() = "MyObject" + i as string
move b [(random -0.5 2.0), (random -0.5 2.0), (random -0.5 2.0)]
b.scale = [(random 2.5 5.5) ,(random 2.5 5.5), (random 2.5 5.5)]

UnifyTwoObjects $MyObject0 $MyObject1 "MyResult1"

read 1307 times
10/29/2011 6:55:05 PM (last edit: 10/29/2011 7:01:09 PM)
show user profile  aca88
ok dont bother.. it wasnt anything. i just restarted max and it works.

can anyone explain why is maxsctipt sometimes problematic when you write a new code, you do mistakes, you evaluate a lot of times a code which it is not correct and in the end when you have your code. it keeps evaluating somehow the Previous Wrong codes.. (hope you understand this)

is this in any relation with GarbageCollection?

read 1296 times
10/29/2011 7:18:46 PM (last edit: 10/29/2011 7:18:46 PM)
show user profile  Dub.
usually it is because at some point you left a bracket open.

it's can sort of get "offset" half in your last bit of code and half in the new code.

one thing to do if you suspect this is the case is to just type:

))))))))))))))))))))))))))))))))))) and execute that. That will close any open brackets.

The other thing that can happen is you can be running code that is reading an old variable value that you think you are updating but aren't for whatever reason. A max restart will highlight that.

read 1281 times
10/31/2011 12:49:56 AM (last edit: 10/31/2011 12:49:56 AM)
show user profile  aca88
exactly 34 brackets ? :)

ok, thanks for the advice.. yes a restart is usually solving such situations.
read 1262 times
10/31/2011 7:12:02 PM (last edit: 10/31/2011 7:12:02 PM)
#Maxforums IRC
Open chat window