PDA

View Full Version : **System execption**


jmpinero
07-15-2011, 07: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 :D

Bobo
07-15-2011, 09:01 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

jmpinero
07-15-2011, 10:23 AM
thank you!

CGTalk Moderation
07-15-2011, 10:23 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.