Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Element 3D / How to make 3D Objects disappear behind element layers?

  • Element 3D / How to make 3D Objects disappear behind element layers?

    Posted by Lukasz Pason on February 18, 2013 at 2:17 am

    Hi! I was wondering if anyone had a solution for making other 3D object disappear behind and Element 3D model. LIke words going around a planet. The solution I have uses the camera’s depth for individual objects, which is fine, but if I move the element object or camera the code breaks. Any help is greatly appreciated! Oh, the code came from the Fabien the Blind. =

    cam = thisComp.layer("Camera 1");
    camPos = cam.toWorld(cam.position);
    target = thisComp.layer("marker");
    targetPos = target.transform.position;
    dist = length(camPos, targetPos);
    // str = "point distance to camn" + dist;
    visMax = 2410;
    if(dist > visMax){
    0
    }else{
    100}

    Lukasz Pason replied 13 years, 2 months ago 2 Members · 2 Replies
  • 2 Replies
  • Andy Kreutzberg

    February 25, 2013 at 12:05 pm

    Hello,

    i am relatively new to element myself, but depending on how complex your scene is, you can use the animation groups that come with element for the purpose you mentioned. Say you have a obj file for the planet and an obj file for the text, the planet would sit on group 1 and the text would sit on group 2. Now if you animate them and the planet group is in front of the text group, the text will be covered by the planet group and not be visible. Alternatively, with the recent update you can also import obj. sequences containing pre-designed animations. Might be useful when your scene is too complex for using the groups animators (only 5 of these are possible as of now).

    Not sure if that’s a solution for your specific case. I found element is useful for scenes with not too much animation from not too many objects. For more complex stuff, the plugin probably needs some extended features to be added in the future (like more than 5 animation groups).

  • Lukasz Pason

    February 25, 2013 at 3:39 pm

    I ended up doing something different for the project but I needted to add multiple cites and there just aren’t enough groups to make it happen. Thanks for your help!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy