Get variables from a not yet spawned bp (prefab)

I want to spawn a planet and a orbit (which is just a spline) bp when the game starts.

To move the planet along the spline I first need a reference of the orbit bp and then the spline but because the orbit bp is not yet created I can’t get the spline from it.

(the orbit bp is spawned first and then the planet)

gets a reference of the specific orbit bp:

Here is the problem:

Hey @ObeseWanKenobi86! Are you attempting to spawn the spline at the same time you spawn your blueprint? Sounds like you want to use a combination of one or two things. The first thing you may want to do is check the “Expose on Spawn” box on your variable. This will let your blueprint know the variable should be accessible at the time of spawning the blueprint. The next thing you need to do is use a Set Node between your Spline REF node and Get Spline Length node.

I want to get a reference of the spline so I think ‘Expose on Spawn’ doesn’t work because it isn’t a var. I don’t really get what you’re trying to say with ‘set node’, what do I set?

Because at the start of the game I spawn a random amount (between 3-6) of planets with each having its orbit bp, maybe I could already create 6 planets and their orbits before the game has started and just delete a random amount?

I’m now going to try the above idea