PDA

View Full Version : Get the new position of point after FFD


gohkgohk
09-04-2009, 11:18 AM
I put a point help on a surface on box,
then I use FFD deform the box together with the box.
i can see the point helper moved with the box within the scene.
But when i use "$Point01.pos" to find its position, it shows the same position before the FFD.
How can i find its updated position and its normal?
thx

pokoy
09-04-2009, 11:47 AM
that's something i'd also like to know...

JHN
09-04-2009, 01:00 PM
I'm not very clear on what the problem is, maybe post a sample scene?!

-Johan

gohkgohk
09-04-2009, 01:20 PM
I'm not very clear on what the problem is, maybe post a sample scene?!

-Johan
when i use "$Point01.pos", it return [5.37371,-56.2045,16.7509]
but it is the position before FFD

JHN
09-04-2009, 07:52 PM
Aaah, yes, well, that's actually very logical. The FFD is deforming the "geometry" of an object. So the only thing you are moving/modifying is the representation of the helper object and not it's transform.
Same goes for the box, you're only moving it's vertices/faces and not it's original position.

What you want to do is assign an attachment controller to the null and pick in the attachment controller (look it up in the helpfile) the face you want to follow. When it's properly set you can trace the position of the point. This way is simply the wrong way of doing things.

Hope that clears it up a bit,
-Johan

gohkgohk
09-05-2009, 03:22 AM
Aaah, yes, well, that's actually very logical. The FFD is deforming the "geometry" of an object. So the only thing you are moving/modifying is the representation of the helper object and not it's transform.
Same goes for the box, you're only moving it's vertices/faces and not it's original position.

What you want to do is assign an attachment controller to the null and pick in the attachment controller (look it up in the helpfile) the face you want to follow. When it's properly set you can trace the position of the point. This way is simply the wrong way of doing things.

Hope that clears it up a bit,
-Johan
thank your for you reply
but now i hv another problem.I created a cylinder and a sphere.
Now i set an attachment control to the sphere, which will attach a small cylinder on its face.
yes .i can attach cylinder on it. but the axis of cylinder do not prependicular to the face on sphere. Is there any rotation constraint that maintain the cylinder prependicular to the face of sphere?
thx

AkramParvez
09-05-2009, 08:31 AM
Switch on the align to surface option in the attachment controller rollout, this should align the cylinder perpendicular to the face.
Now i set an attachment control to the sphere, which will attach a small cylinder on its face.
To attach the cylinder to the sphere's face you need to put attachment controller to the cylinder and press set position and enter the face no. to attach to a face on the sphere.

CGTalk Moderation
09-05-2009, 08:31 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.