Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

MXS: Garment Maker vs. SplineShape

MXS: Garment Maker vs. SplineShape

istan
Advisor Advisor
834 Views
4 Replies
Message 1 of 5

MXS: Garment Maker vs. SplineShape

istan
Advisor
Advisor

Does anyone know, why this script is not working? It reports "more than 2 splines meet..".

 

	lnod = line transform:(Matrix3(1))
	convertTo lnod SplineShape

	h = 1000.0
	w = 300.0
	w = w/2.0
	  
	addnewSpline lnod
	addknot lnod 1 #corner #line (Point3 -w 0 0)
	addknot lnod 1 #corner #line (Point3  w 0 0)
	addnewSpline lnod
	addknot lnod 2 #corner #line (Point3 w 0 0)
	addknot lnod 2 #corner #line (Point3 w 0 -h)
	addnewSpline lnod
	addknot lnod 3 #corner #line (Point3  w 0 -h)
	addknot lnod 3 #corner #line (Point3 -w 0 -h)
	addnewSpline lnod
	addknot lnod 4 #corner #line (Point3 -w 0 -h)
	addknot lnod 4 #corner #line (Point3 -w 0 0)
	
	updateshape lnod

	addModifier lnod (Garment_Maker())
0 Likes
Accepted solutions (1)
835 Views
4 Replies
Replies (4)
Message 2 of 5

Swordslayer
Advisor
Advisor
0 Likes
Message 3 of 5

istan
Advisor
Advisor

nice try.. same error..

0 Likes
Message 4 of 5

Swordslayer
Advisor
Advisor
Accepted solution
Message 5 of 5

istan
Advisor
Advisor

Unbelievable, it works now! Thanks!

0 Likes