Package nukescripts :: Module utils
[hide private]
[frames] | no frames]

Source Code for Module nukescripts.utils

 1  # Copyright (c) 2009 The Foundry Visionmongers Ltd.  All Rights Reserved. 
 2   
 3  import nuke 
 4  from nuke import executeInMainThread 
 5  from nuke import executeInMainThreadWithResult 
 6   
7 -def executeDeferred(call, args = (), kwargs = {}):
8 executeInMainThread(call, args, kwargs)
9 10
11 -def findNextNodeName(name):
12 i = 1 13 while nuke.toNode ( name + str(i) ) != None: 14 i += 1 15 16 return name + str(i)
17