Hi. I am new to Maxscript.
I'm trying to write a script that can analyze a spline's knots and create a fixed window in it. I have a spline named "Layy" in scene . This is my code and I can't go forward. Anyone can help?
local cc= for gg in 1 to (numsplines $'Layy') collect gg
K11=getknotpoint $'Layy' cc 1
K12=getknotpoint $'Layy' cc 2
A = k11 -k12
p1 = fixed height:160 width:A.x Number_of_Panels_Horizontally:1 name:"P1_0[i]" pos:[-a.x/2,-160,0]
p2 = fixed height:160 width:A.x Number_of_Panels_Horizontally:2 name:"P1_0[i]" pos:[-a.x/2,-160,0]
p3 = fixed height:160 width:A.x Number_of_Panels_Horizontally:3 name:"P1_0[i]" pos:[-a.x/2,-160,0]
p4 = Print "AB"
--
for i in 1 to (numsplines $'Layy') do
(
case of
(
(A <= 120): P1
(A <= 200): p2
(A <= 280): p3
(A > 280): p4
)
)
miauu · 2017-12-24