ScriptSpot

Forum topic · General Scripting

Break all spline knots

By ce89 · 2021-09-07

Description

Hi Guys,

What I'm looking to do seems like it should be very straight forward but having done multiple searches over the last week I cannot seem to find an answer.

In short all I'm trying to do is break all thespline knots of a selected spline. This would be for an Editable spline modifier.

Basically create a circle spline, add an editable spline modifier, select all knots, break knots, exit subobject mode.

Any help would be most appreciated.

Thanks

Comments (3)

Swordslayer · 2021-09-08

(
	local splitter = Edit_Spline name:"Split Knots"
	addModifier $ splitter
	setCommandPanelTaskMode #modify
	modPanel.setCurrentObject splitter
	subObjectLevel = 1

	max select all
	splineOps.startBreak splitter
	windows.processPostedMessages()

	max select
	subObjectLevel = 0
)

Swordplay, thank you so much

ce89 · 2021-09-08

Swordslayer, thank you so much that worked perfectly! I would never have worked that out, much appreciated!

ce89 · 2021-09-07

Apologies for the multiple posts. It was hanging so I hit Save a few times. Please delete repeats.