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

Date : Tue, 29 Jan 2008 13:13:36 +0000
To : XSI(at)Softimage.COM
From : "Dan Yargici" <danyargici(at)gmail.com>
Subject : Re: [Scripting] Using FindChildren to find Hair/HairSimOps etc...
Ahh, no, I see now... My problem really was more fundamental!  I was passing null for the first argument, I didn't realise it needed to be an empty string.

That's great to know anyway! Thanks!

DAN

On Jan 29, 2008 12:58 PM, guillaume laforge <guillaume.laforge.3d(at)gmail.com> wrote:
Hi Dan,

This one works fine on 5.11  : var c_hairs = ActiveSceneRoot.FindChildren("","hair");

But this one doesn't : var c_hairs = ActiveSceneRoot.FindChildren("", siFurPrimType);

Maybe it is because "siFurPrimType" is not the X3D hair Object ?

Cheers
Guillaume



On Jan 29, 2008 12:40 PM, Dan Yargici <danyargici(at)gmail.com> wrote:
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



--
Guillaume Laforge


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.