ScriptSpot

Forum topic · General Scripting

how attach object in modifier Edit Poly

By jmpinero3d · 2011-07-14

Description

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 (4)

jmpinero3d · 2011-07-18

thank you very much!

here is...

Anubis · 2011-07-15

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
)

jmpinero3d · 2011-07-15

:S

br0t · 2011-07-14

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 :/