...
Code Block | ||
---|---|---|
| ||
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) |