lechoo
03-27-2009, 09:26 AM
Hi,
I have object with PathDeform modifier (object space) applied. Now I want to move object to path. Just like move to path in wsm PathDeform works. I've found similar problem here http://forums.cgsociety.org/showthread.php?f=98&t=326704 but this solution doesn't work in my case.
I know that I have to align objects transform with path's tangent at 0 like this:
dirVect = (pathTangent mySpline 1 0.0)
splineMat = MatrixFromNormal (normalize dirVect)
but there's always some unknown rotation around Z axis. I've tried different ways to calculate this rotation but no success. Any ideas how to solve this problem?
I have object with PathDeform modifier (object space) applied. Now I want to move object to path. Just like move to path in wsm PathDeform works. I've found similar problem here http://forums.cgsociety.org/showthread.php?f=98&t=326704 but this solution doesn't work in my case.
I know that I have to align objects transform with path's tangent at 0 like this:
dirVect = (pathTangent mySpline 1 0.0)
splineMat = MatrixFromNormal (normalize dirVect)
but there's always some unknown rotation around Z axis. I've tried different ways to calculate this rotation but no success. Any ideas how to solve this problem?
