Source code for nukescripts.utils
# Copyright (c) 2009 The Foundry Visionmongers Ltd. All Rights Reserved.
import nuke_internal as nuke
from nuke_internal import executeInMainThread
from nuke_internal import executeInMainThreadWithResult
[docs]def findNextNodeName(name):
i = 1
while nuke.toNode ( name + str(i) ) != None:
i += 1
return name + str(i)