Simple Script Problem. 2004-05-25 - By Bernard Lebel
Back Salut Halim,
I use the findchildren method instead, very often and it's very picky. I guess it can be the same for findchild. I guess you already know that, but to make it work on a selection, you have to either start a loop if many things are selected, or put Selection(0) if one object is selected.
Then what you put in the type and family arguments are extremely sensitive. For example, a script I'm working on at the moment doesn't collect "polygon_mesh" types of objects, but collects fine objects from the siGeometryFamily objects.
Using findchildren will return a collection, then you have to use a loop to retrive the object you want.
Salut Bernard
-- -- Original Message -- -- From: "Halim Negadi" <halim@(protected)> To: <XSI@(protected)> Sent: Tuesday, May 25, 2004 1:54 AM Subject: Simple Script Problem.
> I think I missunderstood the findchild function. The only way I made > this function work was with the scene root and I'd like to access a > child of a selection. > > Thanks > --- > Unsubscribe? Mail Majordomo@(protected) with the following text in body: > unsubscribe xsi > --- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|