Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
languagepy
# 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")