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

Date : Tue, 29 Jan 2008 11:40:46 +0000
To : xsi(at)Softimage.COM
From : "Dan Yargici" <danyargici(at)gmail.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.