CGTalk > Software > Autodesk 3ds max > 3dsMax SDK and MaxScript
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
Thread Tools Search this Thread Display Modes
Old 01-27-2009, 05:11 PM   #1
Mike Owen
London, United Kingdom
Join Date: Nov 2004
Posts: 131
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.
Old 01-27-2009, 08:31 PM   #2
Lord of the posts
ZeBoxx2's Avatar
Richard Annema
Caustic Graphics / SplutterFish
Groningen, Netherlands
Join Date: Jul 2006
Posts: 1,461
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.
Old 01-27-2009, 08:31 PM   #3
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
Join Date: Sep 2003
Posts: 1,066,479
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 04:53 PM.

Powered by vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.