Script to duplicate & attach tree branch model to tree trunk model?

:smiley:
i am noob, and when math is involved, it gets worse.
nobody happens to have a script to attach tree branches to tree trunk, would they?

i’m doing this manually, thought i’d ask.