I have a problem with the objects. I am using the 3D camera for a video. There are null objects distributed in the scene that are connected with a line. This line is bound to the null objects through an expression. The problem is that the null objects jump somewhere else when they are out of the camera view for too long.
I am not sure if this is due to the script or the settings of After Effects.
This is one by one like a tutorial on YouTube named: "Line Between Nulls in After Effects".
It is strange that the objects in the top view do not move, which is also correct. It is only in the camera that this does not happen.
Without seeing your code we can't be certain and since you didn't provide an exact link one can only speculate, but this sounds like it's using some layer space transform, which of course may breack down when an item is no longer in the view and the matrix conversion makes no sense. The same would be true in reverse - an expression that is supposed to only work in 2D will require extra code to function properly in 3D. anyway, you need to provide more info before anyone can realyl help you.
Pretty much what I said. You can't expect a toComp() to work outside the camera frustrum/ comp window and to boot since this is clearly a mask path being generated it will never work in your 3D scenario without massively expanding the code to account for perspective changes and such. Since you seem to be only wanting to create linear connections, anyway, it may be time to explore otehr venues like simply placing thin 3D solids als lines in the scene.