Hi, I just went to change my layer, and all of a sudden this is entered in the command line.
Here
Python Script ( ResetEngine ): (""“Measures the length of a subsection of a curve chosen by 2 points
Script by Mitch Heynick 26 April 2014"”"
import rhinoscriptsyntax as rs
def LengthAlongCrvTwoPts():
crv=rs.GetObject(“Select curve to measure”,4,True)
if not crv: return
pt1=rs.GetPointOnCurve(crv,“Pick first point on curve”)
if not pt1: return
pt2=rs.GetPointOnCurve(crv,“Pick second point on curve”)
if not pt2: return
sd=[rs.CurveClosestPoint(crv,pt1),rs.CurveClosestPoint(crv,pt2)]
if sd[0]>sd[1]: sd.reverse()
length=rs.CurveLength(crv,sub_domain=sd)
prec=rs.UnitDistanceDisplayPrecision()
units=rs.UnitSystemName(abbreviate=True)
print "Length along curve between points = {} {}".format(round(length,prec),units)
LengthAlongCrvTwoPts() )
Select curve to measure:
This is what the button I have reads up as. Whats going on?
Was I hacked, and what is reset engine? Is this a script update feature that I know nothing of?
-_RunPythonScript
Python Script <""“Measures the length of a subsection of a curve chosen by 2 points (”"“Measures the length of a subsection of a curve chosen by 2 points
Script by Mitch Heynick 26 April 2014"”"
import rhinoscriptsyntax as rs
def LengthAlongCrvTwoPts():
crv=rs.GetObject(“Select curve to measure”,4,True)
if not crv: return
pt1=rs.GetPointOnCurve(crv,“Pick first point on curve”)
if not pt1: return
pt2=rs.GetPointOnCurve(crv,“Pick second point on curve”)
if not pt2: return
sd=[rs.CurveClosestPoint(crv,pt1),rs.CurveClosestPoint(crv,pt2)]
if sd[0]>sd[1]: sd.reverse()
length=rs.CurveLength(crv,sub_domain=sd)
prec=rs.UnitDistanceDisplayPrecision()
units=rs.UnitSystemName(abbreviate=True)
print "Length along curve between points = {} {}".format(round(length,prec),units)
LengthAlongCrvTwoPts() )