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

Does not execute method

$
0
0

Hi All,

def Sel_Ln():
    rt, obj_ref2 = RhinoGet.GetOneObject("Sel Ln", False, ObjectType.Curve)
    print "sel_rtt"

def Sel_Crv_Cls():
    cc, obj_ref1 = RhinoGet.GetOneObject("Sel Crv Cls", False, ObjectType.Curve)
    if (cc != Result.Success):
        Get_Ln()
    else:
        Sel_Ln()

Sel_Crv_Cls()

how come once you start the first def Sel_Crv_Cls()
if the result is the same as success, the second def Sel_Ln() starts

is printed “sel_rtt”
but the method: RhinoGet.GetOneObject("Sel Ln", False, ObjectType.Curve)
is not executed?

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4174

Latest Images

Trending Articles



Latest Images