https://www.youtube.com/watch?v=uEOkgI19Sh4

TheCGBro shows how to make a seamlessly looping nCloth simulation Maya by means of the blendCache Node to create a waving flag animation.

from the TheCGBro: In this Ncloth Blend Cache Node tutorial, TheCGBros show you how to make a professional and sophisticated seamless dynamic looping nCloth simulation using Autodesk Maya and the blendCache node.