Icon representing a recipe

Recipe: Crush To Point

created by Susume

Profile


Name
Crush To Point
ID
101640
Shared with
Public
Parent
None
Children
Created on
November 28, 2015 at 02:00 AM UTC
Updated on
November 28, 2015 at 02:00 AM UTC
Description

As requested, crushes backbone to a single point. Disable Cut Bands before running.

Best for


Code


-- Before running script, in Behavior tab, uncheck "Enable Cut Bands" -- As requested, this script will attempt to crush the backbone to a single point: -- Insert cut points between all segments -- Band all segments to a single point -- Set CI to 0 and wiggle for i = 1, structure.GetCount()-1 do structure.InsertCut(i) end band.DeleteAll() band.AddBetweenSegments(1,structure.GetCount()) for i = 2, structure.GetCount()-1 do band.AddToBandEndpoint(i,1) end for b = 1, band.GetCount() do band.SetGoalLength(b,0) band.SetStrength(b,10) end behavior.SetClashImportance(0) structure.WiggleAll(25)

Comments