Added example script and c++ code for iterating specified nodes or all nodes in specified groups