Hi everyone. 

I am trying to figure a way out of exiting a closure and executing the 
nested function within it. 
So far I have only seen on the net closures within the 1 file. let me show 
you what I mean. 

#File_1

def pressButton():
    for nodes in file_2.selection():
        print nodes


pressButton is nested in a function called create_window

#File_2

def selection():
    pymel.core.selection(n="transforms")

selection is the function I want to call from pressButton() but is imported 
from another file.

I am looking for most efficient way to escape this closure while still 
maintaining functionality of the UI.

Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/740e93d4-3934-42b1-9b9a-1cc5fe78ae60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to