API Reference
nuke.
makeGroup
Creates a new group containing copies of all the currently selected nodes. Note that this creates duplicates of the selected nodes, rather than moving them.
show – If show is True, the node graph for the new group is shown.
The new Group node.