how attach object in modifier Edit Poly

Hello everyone, I have a doubt about the edit_poly modifier.
How I can attach an object to this modifier?

If the object is editable poly, I have no problems ...
If a modifier... does not work ..

this is sintaxis used:

a = box pos:[-50,0,0]
b = box pos:[50,0,0]
c = edit_poly()
addmodifier a c
a.modifiers[#Edit_Poly].attach b editPolyNode:a

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jmpinero3d's picture

thank you very much!

thank you very much!

Anubis's picture

here is...

i hope you see whats the deal ;-)

(
	max create mode
	a = box pos:[-50,0,0]
	b = box pos:[50,0,0]
	c = edit_poly()
	addModifier a c
	max modify mode -- !!!
	modPanel.setCurrentObject c -- !!!
	a.modifiers[#Edit_Poly].attach b
)

my recent MAXScripts RSS (archive here)

jmpinero3d's picture

:S

:S

br0t's picture

works fine when evaluated

works fine when evaluated line by line, but fails with a system exception if evaluated all at once... right now I have no idea what would be wrong :/

Never get low & slow & out of ideas

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.