PDA

View Full Version : Simple Spline Outline Maxscript Help Needed


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

Bobo
10-27-2002, 06:29 AM
Originally posted by visualasylum


splineOps.startOutline




Infortunately, splineOps.startOutline does not do an Outline. It only STARTS the Outline operation, same as clicking with the mouse on the Outline button in the UI, but it does not perform the operation itself - it expects the user to finish the job by using the mouse.

As far as I can tell, there is currently no way to outline the spline automatically without user interaction.

Btw, the function expects the spline or Edit_Spline modifier as argument, not the amount of extrusion.

visualasylum
10-27-2002, 06:33 AM
damn.......thanks.

that sucks, now I have to do this to about a million lines manually.

thanks anyway.

cheers,

Greg

visualasylum
10-27-2002, 06:41 AM
damn.......thanks.

that sucks, now I have to do this to about a million lines manually.

thanks anyway.

cheers,

Greg

CGTalk Moderation
01-13-2006, 08:01 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.