Clone Current Pattern Availability In Other Screens

Hi, I’d really… (really… really…) like to use the Pattern Editor->Pattern Sequence->Clone Current Pattern
in other views too, which would not be pattern editor. How could this be made possible, please?

I see that there’s no API function for clone-current-pattern?

No but through the pattern iterator this can be easily made with the available options for reading pattern rows and columns and copying the values to another pattern.
See the patterniterator.lua in the snippets folder for brief examples of how to use the iterator.

will the patterniterator also contain the required information to duplicate the automation data also?