Copy link to clipboard
Copied
Hey guys,
I need some help.
I am currently working on a project and I don't know how to finish it.
I have 6 images that follow the 3D rotation of a null-object (see on gif).
I want them to have a differnt twist when they come closer to the camera and move to the right and further away. (for examle: it starts with 100 degrees and when it moves closer to the camera it automatically turns and at the end it has 180 degrees on the right side).
Also it should disappear at a specific point so it doesnt appear at the back of the screen. Maybe there is a possibility to let them appear on the left side again.
I would really appreciate it if anyone knows any suitable expressions?
Christina
Thanks for the fast answer.
I tried some differnet ways. Every single one had a ".toWorld" expression.
Here the final solution:
The serveral object had expressins in
thisComp.layer("xPos").effect("Abstand Icons")("Schieberegler")*(index -1)
Copy link to clipboard
Copied
Check out the toWorld() expression:
https://ae-expressions.docsforadobe.dev/layer-space.html?highlight=toworld#toworld-point-t-time
Basically you want to get the toWorld() position of each object, and then measure that to another point in space, or a null. If you just want to compare the Z position, then grab the third element or [2]
const a = thisComp.layer("Null 2").toWorld([0,0,0])[2];
const b = thisComp.layer("Null 1").toWorld([0,0,0])[2];
const diff = a - b;
Once you have that difference, you'll want to plug it into an interpolation operator like linear() or ease() to adjust opacity or twist or whatever between 2 values.
Copy link to clipboard
Copied
Thanks for the fast answer.
I tried some differnet ways. Every single one had a ".toWorld" expression.
Here the final solution:
The serveral object had expressins in
thisComp.layer("xPos").effect("Abstand Icons")("Schieberegler")*(index -1)
The object was parented to a Null-Object which had several Slider (7: for the distance, size, rotation, maxRotation, Transparency, smalScal, distance Elements) to have alterable Elements. The expressions work for several Elements so the first Element can be duplicated and replaced. There is only one important part that need to be memorised: The layers need to be in the right order because of the "index"- part in the expression (The null-object needs to be the last).
Hope this helps for future questions!