Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4120

Help: need to return value

$
0
0

Jørgen Holo wrote:

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

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4120

Trending Articles