I can't picture exactly what you're trying to do but have you checked my createDynChain.mel? It may not be suitable as is but the setup may give you some ideas. Check it out at my site. Link in sig.