Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting
Viewing all articles
Browse latest Browse all 2143

How does the parent rotation affects the child specifically?

$
0
0

Hi Everyone.

 

Recently, I found a little thing in parenting relationship. I'll illustrate my scenario.

 

I have a little 3d solid and a 3d null. Here are their rotation and orientation value:

1.png

After I parent the solid to the 3d null(named 'Parent'), the child's orientation value changes to keep the original  transform status. That is nothing special.

2.png

But here comes the question: How can I get the result of [338.0,353.8,307.1] from [25,0,0]? Is there a formula to calculate this? I guess I'm gonna need it in my project.

 

And here is another interesting thing: the camera won't change its orientation value to keep its original transform after parenting.

Here is the rotation and orientation value before parenting:

3.png

And here is the camera in custom view:

4.png

After parenting, the rotation and orientation value didn't change, so it is impossible that the camera will still maintain its original transform. So it jumped a little bit. Like this:

5.png

6.png

It seems that the same holds true for spot light. I guess it is because they both have point of interest?(Not sure)

 

So I think if I can make out how the child's orientation value is affected by the parent's rotation, I can make compensation for the jumping issue of camera parenting.

How could I achieve this via expression or scripting?

 

Any reply will be appreciated.

 

Aaron


Viewing all articles
Browse latest Browse all 2143


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>