visualasylum
10-27-2002, 06:18 AM
MAX gurus out there, I need a little help in resolving a script problem here. I'm trying to make a little script that will basically add and EDIT SPLINE modifier to a spline line, then give it an OUTLINE(under EDIT SPLINE) size of 75, and then add a SURFACE modifier for it. I tried to get it from the MAXlistener, but it foesn't capture the OUTLINE command, so I digged a little in the manuals and found the string, but still, I might have somthing in the code.
here's the code:
-----------------
modPanel.addModToSelection (Edit_Spline ()) ui:on
subobjectLevel = 3
modPanel.setCurrentObject $'Polyline:06'.modifiers[#Edit_Spline]
splineOps.startOutline [75]
subobjectLevel = 0
modPanel.setCurrentObject $'Polyline:06'.modifiers[#Edit_Spline]
$'Polyline:06'.modifiers[#Surface].steps = 12
------------------
any help is appreciated.
Greg
here's the code:
-----------------
modPanel.addModToSelection (Edit_Spline ()) ui:on
subobjectLevel = 3
modPanel.setCurrentObject $'Polyline:06'.modifiers[#Edit_Spline]
splineOps.startOutline [75]
subobjectLevel = 0
modPanel.setCurrentObject $'Polyline:06'.modifiers[#Edit_Spline]
$'Polyline:06'.modifiers[#Surface].steps = 12
------------------
any help is appreciated.
Greg
