nukescripts.executeInMainThreadWithResult

nukescripts.executeInMainThreadWithResult(call, args=(), kwargs={})[source]

Execute the callable ‘call’ with optional arguments ‘args’ and named arguments ‘kwargs’ in Nuke’s main thread and wait for the result to become available.