Bear with me here. I have a comp with two 3D nulls tracking two ends of a baton. I'm using particular to generate streaks on either end. I'm using the positional data of those two nulls to calculate their 3D center point.

After I calculate that center point, I define it as a variable and use it to further divide segment, calculating center points from two other center points and so on. I've manually written it out to 15 subdivisions but I feel like there should be a more efficient method of generating those points. Attached is what I have written so far. All individual streaks are different solid layers with Particular applied. The attached set of expressions is the same on every layer with adjusted arrays.

Thanks for any help!

Video Reference:

https://www.dropbox.com/s/pkzlkh7os9k1edb/Ex_Streak.mp4?dl=0
Expressions TXT:

https://www.dropbox.com/s/k44foxe86e7nnq1/Code.txt?dl=0