Ian, not sure version you're on, but if I switch to materials mode in an explorer and right click over it, I see no option to select objects with this material...
Sebastien,
I put this together which does what you're looking for.
It's based on a selected material, finds all objects using the material, and makes a group out of them for easy perusal.. mix and matching commands with OM.. dirty, but it works.. I'd like to know though, if I'm missing something thats offered directly within XSI based on the contents of Ian's mail..
note: no serious error checking is built in..
<snip>
var oSel = selection;
var oName = oSel(0).name;
var oTemp = oSel(0).owners;
deselectAll();
creategroup(oName + "Users", null, null);
for(var i = 0; i < oTemp.count; i++)
{
if(oTemp(i).type != "library_source")
{
addtogroup (oName + "Users", oTemp(i));
}
}
</snip>
Adam
----- Original Message -----
From: Ian Stewart <istewart(at)Softimage.COM>
Date: Friday, April 21, 2006 8:48 am
Subject: RE: objects using selected material
> In the Explorer, right click the material and select "Select
> objects with this material"
>
> -----Original Message-----
> From: owner-xsi(at)Softimage.COM [owner-xsi(at)Softimage.COM]On Behalf
> Of Sebastien Ortega
> Posted At: April 21, 2006 4:56 AM
> Posted To: xsi
> Conversation: objects using selected material
> Subject: objects using selected material
>
>
> Hi folks,
>
> I'd like to know if there is an easy way to get a list of objects
> which
> are using a given material.
>
> Or do I really have to parse for all objects in the scene and
> check if
> their material matches the one I'm looking for ?
>
> thanks
>
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text
> in body:
> unsubscribe xsi
>
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text
> in body:
> unsubscribe xsi
>
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi