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 -def findNextNodeName(name):
11 i = 1 12 while nuke.toNode ( name + str(i) ) != None: 13 i += 1 14 15 return name + str(i)
16