Notifications
Clear all

[Closed] Selecting all instances

Hi All,
How do you go about selecting all objects that have an instance of a particular modifier on it?
For example, I select $object01 which has an “edit_mesh” on it, which is instanced and I want to automatically select all other objects that also have that instanced modifier on it.
Thanks,
Mike

1 Reply

something like…


mymod = $.modifiers[1]
Bend:Bend
objs = for ref in (refs.dependents mymod) where ( isKindOf ref GeometryClass ) collect ( ref )
#($Editable_Mesh:GeoSphere01 @ [33.579334,7.011070,0.000001], $Editable_Mesh:GeoSphere02 @ [107.380074,17.343174,0.000002])

or you could manually traverse the objects collection (array), then go over each modifier on those objects, and check if that modifier matches the modifier of interest.