I don’t know either. As you probably know with surfaces, they can be unrolled and need to be for many operations such as applying textures from pictures to a cylinder. But they arent’l limited to cylinders.
In the meantime, heres a quickie macro.
_line 0 pause pause enter
The no echo keeps the beginning of the line command short and able to see the result from length.
select your curve before you click your button, or run the macro
The length will be in the command history, simply enter the length in command line, hit enter.
Pick where you want the end of the line from 0, click in whatever viewport, use constraints, etc.
pick where to move your line from and to
pretty quick, but copying the #result of the command length (a variable) to a line command seems like a pretty easy script to make! a 5 minute macro button might do though if this is a regular thing you do.
Still working on it but this is pretty much doing what I want now. Thanks again.
import rhinoscriptsyntax as rs
object = rs.GetObject("Select a curve")
length = rs.CurveLength(object)
# create variable to orient the crv from the middle
middle = length/2
# prompt for distance above or below original curve
gap = rs.GetInteger("distance above/below", 0)
# orient curve for different views
viewName = rs.CurrentView( return_name=True )
if viewName in ("Left","Right"):
elif viewName in ("Top","Bottom"):
You da man Jeff, better luck next time Mitch! Just kidding, thank you both for the wonderful curve tools. Mitch’s measuring, and Jeff’s straighten.
wow, can’t believe the python script is shorter than the crappy macro darn near, but did figure it was quite easy. But it is a new curve though, not actually modifying the actual input. Much quicker and cleaner than actually straightening it would ever be.