Using this answer, I came to that code:
\documentclass{beamer}
\usepackage{totcount}
\regtotcounter{section}
\usepackage{multido}
\newcommand{\mytableofcontents}[0]{
\multido{\I=1+1}{\totvalue{section}}{
\begin{frame}<beamer>
\setcounter{section}{\I}
\frametitle{Outline}
\tableofcontents[
currentsection,
sectionstyle=show/show,
subsectionstyle=show/show/hide,
]
\end{frame}
}
\setcounter{section}{0}
}
\begin{document}
\mytableofcontents
\section{Test Section One}
\begin{frame} test \total{section} \end{frame}
\subsection{Test Subsection One One}
\begin{frame} test\end{frame}
\subsection{Test Subsection One Two}
\begin{frame} test\end{frame}
\subsection{Test Subsection One Three}
\begin{frame} test\end{frame}
\section{Test Section Two}
\begin{frame} test\end{frame}
\subsection{Test Subsection Two One}
\begin{frame} test\end{frame}
\subsection{Test Subsection Two Two}
\begin{frame} test\end{frame}
\subsection{Test Subsection Two Three}
\begin{frame} test\end{frame}
\section{Test Section Three}
\begin{frame} test\end{frame}
\subsection{Test Subsection Three One}
\begin{frame} test\end{frame}
\subsection{Test Subsection Three Two}
\begin{frame} test\end{frame}
\subsection{Test Subsection Three Three}
\begin{frame} test\end{frame}
\end{document}
And here are the first three frames:



AtBeginSubsection
byAtBeginSection
and theshow/shaded/hide
value for the subsection byshow/show/hide
?