Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagepy
checkForName  = "Cube03"
nodeNames     = []
nodeSelection = []
sceneNodes    = scene.getNodes()
 
for entry in sceneNodes:
	nodeNames.append(entry.getName())
 
if (checkForName in nodeNames):
	scene.message("Object \""+checkForName+"\" exists.")
	nodeSelection.append(scene.getObjectgetNode(checkForName))
 
else:
	scene.message("Object \""+checkForName+"\" ist not part of the project.")
 
scene.selectNodes(nodeSelection, True)