|
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/
|