Posts: 4
Threads: 2
Joined: Aug 2013
Hello- Really loving Curvy... I'm in a position where I need to mirror all my curves/extruded meshes and keep the scripts/scaling curve data intact- so I can continue to edit values on both sides. Was wondering if there was an ideal approach that worked properly? None of my experiments have yet to work... Thanks for any insight.
Posts: 690
Threads: 71
Joined: Jan 2015
The ideal approach is to wait for 1.51 which among others adds an "Flip Spline" option
If you're in hurry, contact me by mail (here in the forum, click on my name and then "Send E-Mail") and we'll find a solution (please include your Ordernumber).
Jake
Posts: 4
Threads: 2
Joined: Aug 2013
Posts: 690
Threads: 71
Joined: Jan 2015
Try adding this to the CurvyUtility class (CurvyUtility.cs):
Code:
/// <summary>
/// Flips the direction of a spline, i.e. the first Control Point will become the last and vice versa.
/// </summary>
public static void FlipSpline(CurvySpline spline)
{
spline.ControlPoints.Reverse();
spline._nameControlPoints();
spline.Refresh(true, true, false);
}
You'll need to call this from a script or add a button to the spline inspector if you want it within the editor.