Goal: add default material to all child node on a Scenekit scene.
What I did:
// get child noses from scene
let allNodes = scene.rootNode.childNodes
//create a defaul material
let defaultMaterial = SCNMaterial()
defaultMaterial.diffuse.contents = NSColor.red
//add defaul material to all child nodes
allChildNodes.replaceMaterial(at: 0, with: defaultMaterial)
Problem:
Looks like "replaceMaterial" doesn't work with an array of nodes.
Question:
How I add a material to an array of nodes?

