Notifications
Clear all
[Closed] **System execption**
Jul 15, 2011 7:54 am
Hi everyone! I have dout about edit_poly modifer.
Can I attach a object to this modifier?
If attach object to Editable poly, no problem… (in maxscript)
If attach objeto to Edit_Poly modifier, the listener print this error “System execption”
I evaluate line attach only and works!.. and object attach, but if evaluate all script fail
box name:"Test01"
box name:"Test02"
addmodifier $Test01 (edit_poly())
$Test01.modifiers[#edit_poly].attach $test02
thanks, and sorry, my english isn’t very good
2 Replies
Jul 15, 2011 7:54 am
The modifier must be active in the Modify Panel, otherwise it is not initialized correctly:
b1 = box() --create a box
b2 = box pos:[50,0,0] --create another
theEP = edit_poly() --create an EPoly mod
addmodifier b1 theEP --add it to the first box
modPanel.setCurrentObject theEP --activate the modifier
theEP.attach b2 --attach the second box to the first