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
- Simply just drag the script to the viewport to install.
- Right-click on the toolbar > Customize…
- Choose the tab ‘Toolbars’
- In the Category: dropdown, select ‘ManniiCode’
- 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()