Skip to main content
Participant
February 13, 2023
Question

Can you parent and then unparent a linked null mid movement? Trying to use JetStrike from Element 3D

  • February 13, 2023
  • 3 replies
  • 260 views

Hello everyone!

 

My question involves an Element 3D object inside of After Effects. It's a plane with a missile attached to it.

What I'd like to do is move the plane around, then have a missile drop, and then shoot out into the distance. The problem I am having is that the missile is parented to the plane, so it moves when it moves. I can animate the missile dropping below the plane, but after that, it still stays parented to the plane, and the dropped-down missiles are now offset, and still follows the plane's general direction. I'd like the missiles to follow the plane, then after they are dropped down, they start to shoot off to the direction I'd like, while the plane goes off and flies away. 

I'm following this tutorial:

https://youtu.be/TJYuTfJ_QfY

 

I can do this tutorial, but there are issues when you start to have the plane move around, as the linked missiles tend to keep following the parent, in this case the jet. Is there a way to turn off the parenting or unlink the parenting to this jet? Hopefully this makes sense.

 

Any help would be appreciated, even if it points to a tutorial 🙂

This topic has been closed for replies.

3 replies

Mylenium
Legend
February 15, 2023

You parent the Null to the aircraft as a reference for the mounting point. The expression is applied to the rocket's position, which isn't parented to anything.

 

Mylenium 

Cesar5E6EAuthor
Participant
February 15, 2023

Hey Mylenium,

 

Thanks for the quick reply! I'm going to try this out. I'm not super familiar with expressions lingo, but I was curious about the following statement you made:

"You parent a Null to the jet in place of the rocket and then add some sort of slider to blend between positions"

Are you saying to create a Null object, create a layer with a Slider Control, and then parent the rocket to the slider control?

I'm trying to think of this in these types of terms to help me understand the concept better. I'm going to try this and see how it goes.

And thanks, I really appreciate the help!

Mylenium
Legend
February 13, 2023

You wouldn't do any of that. You simply change your setup. You parent a Null to the jet in place of the rocket and then add some sort of slider to blend between positions. Something like this perhaps applied to the position of the rocket:

 

mNullRef=thisComp.layer("Null");
mNullWld=mNullRef.transform.position.toWorld(mNullRef.transform.anchorPoint);

mBlend=thisComp.layer("Controller").effect("Rocket Blend")(1);

X=linear(mBlend,0,100,value[0],mNullWld[0];
Y=linear(mBlend,0,100,value[1],mNullWld[1];
Z=linear(mBlend,0,100,value[2],mNullWld[2];

[X,Y,Z]

 

Adjust the references as needed. Can contain errors, as I'm typing this on the fly.

 

Mylenium