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:
Code Block | ||
---|---|---|
| ||
# 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") |