Hello, Matthias.
Thanks for your reply and advice.
The explanation of the operation is not described in the manual. I made to active the animated property.
However, the target object did not move.
Are you able to move the target object?
Best regards,
K-UDA

----- Original Message ----- From: "Matthias Kappenberg" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, November 22, 2006 3:37 AM
Subject: Re: About constraint tool


The "original" constraint to center script is written for 2 spheres:
// Script begin
cog  = new r3Vect(0, 0, 0);
var i = 0;

for(i = 0; i < 3; i++) {
   child = Self.GETSUBBYORDNUM(i);
   if(!child)
       break;
   p = child.GetCenter();
   cog.fadd(p);
}

if(i > 0) {
   cog.fdiv(2);                                      // 2 Spheres
}

Target.SetCenter(cog);
// Script end

use this for 3 spheres:
// Script begin
cog  = new r3Vect(0, 0, 0);
var i = 0;

for(i = 0; i < 3; i++) {
   child = Self.GETSUBBYORDNUM(i);
   if(!child)
       break;
   p = child.GetCenter();
   cog.fadd(p);
}

if(i > 0) {
   cog.fdiv(3);                                    // 3 Spheres
}

Target.SetCenter(cog);
// Script end

Have a look at the attached picture, too.
Hope this is helpy,
Matthias


----- Original Message ----- From: "K-UDA" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, November 21, 2006 6:37 AM
Subject: About constraint tool


Hello List.
I tried the constraint center.r3d.
However, it did not work well.
I selected three input sphere objects and moved them.
The target object was not constrained to center.
It worked well when I selected only one input sphere object. Is it a bug?

A bug of manual
The explanation of recursive option is different from the actual one.

I created four analytic spheres newly.
I did the same operation as the description of the manual.
Then I moved one object in the constraint object.
However, the target object did not move.
Did I make a mistake?

Best regards,
K-UDA

Reply via email to