RE: [Scripting] Using FindChildren to find Hair/HairSimOps etc...

Date : Tue, 29 Jan 2008 06:58:55 -0500
To : <XSI(at)Softimage.COM>
From : "Stephen Blair" <Stephen_Blair(at)Softimage.COM>
Subject : RE: [Scripting] Using FindChildren to find Hair/HairSimOps etc...
FindChildren finds X3DObjects, so it won't find operators.
 
How about FindObjects(), or XSICollection.Items with wildcards?
 


From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Dan Yargici
Sent: Tue 29 January 2008 6:41 AM
To: xsi(at)Softimage.COM
Subject: [Scripting] Using FindChildren to find Hair/HairSimOps etc...

I can't for the life of me get this to work... Am I missing something really obvious?

var oHairColl = ActiveSceneRoot.FindChildren(null, ???);

What I really want are the Hair Dynamics operators but the hair objects themselves would do.... Right now I'm checking the type of everything in the scene to filter out the hair objects, then going through each of their construction histories looking for the Simulation operators and returning my collection of operators, but this seems really round the houses.

I've tried 'hair', 'siFurOpType', 'siFurPrimType' etc.... which type do you guys use in conjunction with FindChildren when working with hair?

Thanks,

DAN

Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.