ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Catching the Absolute Rotation and Scale: Non-uniforms

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Neil Hammers
Catching the Absolute Rotation and Scale: Non-uniforms
on Jan 18, 2018 at 12:42:51 am

Hi, I know, this question about finding those absolute rotations has been answered by Mr. Ebberts and others numerous times, like: https://forums.creativecow.net/readpost/227/25141 however, I noticed a twist and the reason why it did not work for the original poster - those expressions work only if every parent is scaled uniformely (ratio 1.0). Otherwise, it goes crazy, because non-uniform scale affects angles, and abs scale itself was calculated only by taking Y value.
In my case, I have a rigged guy with a bee smoker in his hands (nested comp) and for smoke I need to link Trapcode Particular's emitter to it, with the smoker's absolute rotation taken in account (main comp). At the moment only positioning works (toWorld, fromWorld)... from where I wonder if toWorldVec could work and give abs angle, and what would be javascript for that, ty.
Nh

pos = comp("nestedCharacter").layer("smokeEmitPoint");
fromWorld(pos.toWorld(pos.anchorPoint)) // or smth like that for 3D point to feed into emiter's position


Nh


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]