Looping - Selected Nodes
Add this script to a "Batch Script" editor (F10) and execute it with Script > Run.
Find all objects in a selection of nodes and activate their "Active rigid body" dynamics feature:
# Get all selected nodes nodeSelection = scene.getSelectedNodes() Â # Loop through the nodes in the selection and filter out the objects for entry in nodeSelection: if (entry.getType() == TYPE_OBJECT): Â # If an object was found activate its active rigid body state entry.setParameter("Dynamics", "Active rigid body")