--Unknown system exception
Hi all,
I've been developing my Mulsi/Sub Object MAterial Script but when I run it i get the above error........
Here's the code
rollout a "Create" width:200 height:496 ( button btn_1 "Create" width:80 height:25 button btn_2 "Create for VRay" width:90 height:25 ) rollout b "About" width:200 height:200 ( label lbl1 "Multi/Sub-Object Presets v0.5" pos:[48,8] width:112 height:16 label lbl2 "Created by Andy Butler" pos:[23,24] width:160 height:16 HyperLink homepage "SB_Tools" pos:[70,56] width:65 height:15 address:"http://www.scriptspot.com/users/script-butler/" color:(color 255 255 255) hovercolor:(color 255 0 0) visitedcolor:(color 255 153 51) label lbl3 "Copyright © 2011" pos:[58,40] width:83 height:15 ) on btn_1 pressed do ( mat = multimaterial() mat.count = 10 mat[1] = standardmaterial name:"Standard 1" diffusecolor:[255,0,0] mat[2] = standardmaterial name:"Standard 2" diffusecolor:[255,125,0] mat[3] = standardmaterial name:"Standard 3" diffusecolor:[255,255,0] mat[4] = standardmaterial name:"Standard 4" diffusecolor:[125,255,0] mat[5] = standardmaterial name:"Standard 5" diffusecolor:[0,255,0] mat[6] = standardmaterial name:"Standard 6" diffusecolor:[0,0,255] mat[7] = standardmaterial name:"Standard 7" diffusecolor:[0,125,255] mat[8] = standardmaterial name:"Standard 8" diffusecolor:[0,0,255] mat[9] = standardmaterial name:"Standard 9" diffusecolor:[125,0,255] mat[10] = standardmaterial name:"Standard 10" diffusecolor:[255,0,255] meditmaterials[activeMeditSlot] = mat ) on btn_2 pressed do ( mat = multimaterial() mat.count = 10 mat[1] = Vraymtl name:"VRay 1" mat[1].Diffuse = color 255 0 0 mat[2] = Vraymtl name:"VRay 2" mat[2].Diffuse = color 255 125 0 mat[3] = Vraymtl name:"VRay 3" mat[3].Diffuse = color 255 255 0 mat[4] = Vraymtl name:"VRay 4" mat[4].Diffuse = color 125 255 0 mat[5] = Vraymtl name:"VRay 5" mat[5].Diffuse = color 0 255 0 mat[6] = Vraymtl name:"VRay 6" mat[6].Diffuse = color 0 0 255 mat[7] = Vraymtl name:"VRay 7" mat[7].Diffuse = color 0 125 255 mat[8] = Vraymtl name:"VRay 8" mat[8].Diffuse = color 0 0 255 mat[9] = Vraymtl name:"VRay 9" mat[9].Diffuse = color 125 0 255 mat[10] = Vraymtl name:"VRay 10" mat[10].Diffuse = color 255 0 255 meditmaterials[activeMeditSlot] = mat ) rof=newrolloutfloater "Multi/Sub-Object Mat" 216 600 addRollout a rof rolledUp:true addRollout b rof rolledUp:false
Would you be so kind to tell me why i get this error?
Cheers.
Comments
I'm so stupid!
I will get the hang of this eventually!
Thanks Anubis.
Cheers.
Script_Butler
keep attention to the scope
now your button events are out of the rollout scope, shortly:
my recent MAXScripts RSS (archive here)