Simple Script Problem. 2004-05-25 - By kim aldis
Back Any time :) The problem with functions like this is they don't return errors if they're given an incorrect argument. There's no reason they should, I guess, but it does mean you need to be careful what you give them.
> -- --Original Message-- -- > From: owner-xsi@(protected) > [mailto:owner-xsi@(protected)] On Behalf Of Bernard Lebel > Sent: 25 May 2004 13:02 > To: XSI@(protected) > Subject: Re: Simple Script Problem. > > Thanks for the info. > > Bernard > > > -- -- Original Message -- -- > From: "kim aldis" <kim@(protected)> > To: <XSI@(protected)> > Sent: Tuesday, May 25, 2004 1:22 PM > Subject: RE: Simple Script Problem. > > > > You may find it's a case sensetivity thing, Bernard. For types I'd > > suggest using the siType builtin constants, for example > > siPolyMeshType, for poly meshes. This seems to work for me. > > > > In fact, looking at these definitions, siPolyMeshType is > set to "polymsh". > > That may be the root of your problem. > > > > > -- --Original Message-- -- > > > From: owner-xsi@(protected) > > > [mailto:owner-xsi@(protected)] On Behalf Of Bernard Lebel > > > Sent: 25 May 2004 08:33 > > > To: XSI@(protected) > > > Subject: Re: Simple Script Problem. > > > > > > 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 > > > > > > > > > > > > > > > > > --- > > Unsubscribe? Mail Majordomo@(protected) with the > following text in body: > > unsubscribe xsi > > > --- > Unsubscribe? Mail Majordomo@(protected) with the following > text in body: > unsubscribe xsi > >
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|