For anyone who finds the need to change the page number in the pdf afterwards to make the animations and buttons work it is done this way:
the section of code that reads,
getAnnots3D(0)[0];
is set for page one
you would have to change it to:
getAnnots3D(1)[0];
for page two and:
getAnnots3D(2)[0];
for page three and so on.