Image by Andrew Martin from Pixabay

Select Multiple Instances

The script has a bug I’m fixing. I’ll fix it soon!

Problem I’m solving

With native max, you can do Edit > Select Instances to select all instances of an object. However, this option is not available for multiple objects.

Solution

This script helps you quickly select multiple instances even instance objects within groups.

Installation

  1. Simply just drag the script to the viewport to install.
  2. Right-click on the toolbar > Customize…
  3. Choose the tab ‘Toolbars’
  4. In the Category: dropdown, select ‘ManniiCode’
  5. Drag the script to the toolbar where ever you want!

Images credits

Bicycle image – Image by cameradud from Pixabay

Storm Trooper – Image by Andrew Martin from Pixabay

Multiple Building – Image by Jayr from Pixabay

Code

fn SelectMultipleInstances = 
(
	local MC_Obj_selected = GetCurrentSelection()
	local MC_AllInstances = #()
	
	for i in MC_Obj_selected do
	(
		InstanceMgr.GetInstances i &instances
		for o in instances do(appendIfUnique MC_AllInstances o)
	)
	
	select MC_AllInstances 
)

SelectMultipleInstances()

Images