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

Date : Tue, 29 Jan 2008 12:37:22 +0000
To : XSI(at)Softimage.COM
From : "Dan Yargici" <danyargici(at)gmail.com>
Subject : Re: [Scripting] Using FindChildren to find Hair/HairSimOps etc...
Hmmm, I'll look into those, thanks....

However - unless I'm mistaken the hair itself is an X3DObject! and I seem to be unable to use FindChildren to find hair objects!

I'm sure it's something fundamentally daft on my part, but I couldn't make it work.

I'll check out your suggestions now....

DAN.

On Jan 29, 2008 11:58 AM, Stephen Blair <Stephen_Blair(at)softimage.com> wrote:
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.