Re: Script : howw to find forces from cloud primitive

Date : Tue, 7 Nov 2006 16:32:07 +0100
To : XSI(at)Softimage.COM
From : "guillaume laforge" <guillaume.laforge.3d(at)gmail.com>
Subject : Re: Script : howw to find forces from cloud primitive
Sorry, forget my last mail.
NestedObjects will do the job...




On 11/7/06, guillaume laforge < guillaume.laforge.3d(at)gmail.com> wrote:
Hi,

I need to find all the forces from a cloud.

In the explorer I see the forces operators under the Particles Operator. I can find the Particles Operator with all its parameters but I don't know how
to find the forces operators ("attractor" op for example) and from there find the forces X3D objects.

I started like this and I'm miserably stoped :

var oPick = PickObject ("Select a Cloud");
//Original Cloud
var oCloud = oPick.value("PickedElement");

var oPCloud = oCloud.ActivePrimitive;
var oStackOps = oPCloud.ConstructionHistory;

oEnumOps = new Enumerator( oStackOps ) ;
for (;!oEnumOps.atEnd();oEnumOps.moveNext() )
{
    var oOp = oEnumOps.item() ;
    if(oOp.Name == "ParticlesOp")
    {
        var POP = oOp; // Then how to find operators under this ParticlesOp ?
    }
}



Cheers
--
Guillaume Laforge
freelance TD | cg Artist
my blog ! http://vol2blog.blogspot.com/



--
Guillaume Laforge
freelance TD | cg Artist
my blog ! http://vol2blog.blogspot.com/

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.