Help: need to return value


#1

I have ran into a Python thing that I can’t figure out… I need to return a value that was generated within a definition:
Thanks!

def HoloSpin(strMode):

    time1=time.time()
    for i in range(100):
        rs.RotateView(strView, 0, 3.6)
        Rhino.RhinoApp.Wait()
    time2=time.time()
    dblScore=round(time2-time1,2)
    return dblScore

HoloSpin("Wireframe")
print dblScore

(Steve Baer) #2
score = HoloSpin("Wireframe")
print score

#3

Well… That’s just logical :smile:
I owe you a good bottle of Champagne!