/
Looping - Group Members
Looping - Group Members
Add this script to a "Batch Script" editor (F10) and execute it with Script > Run.
Find all polygon objects in a group named "Scene_Nodes" and print their names to the "Messages" panel:
# Get the group "Scene_Nodes" and its contained nodes group = scene.getGroup("Scene_Nodes") groupNodes = group.getNodes() # Loop through every node and filter out the objects for entry in groupNodes: if (entry.getType() == TYPE_OBJECT): # If an object was found print out its name scene.message("Object name: " + entry.getName())
Related content
Checking for Existing Names
Checking for Existing Names
More like this
Names, Groups, Visibility
Names, Groups, Visibility
More like this
Looping - Faces and Vertices
Looping - Faces and Vertices
More like this
Looping - Selected Nodes
Looping - Selected Nodes
More like this
Looping: for ... in range
Looping: for ... in range
More like this
Scene Node
Scene Node
More like this