Template Canvas Scroll bars scripting

I am using a template canvas and the templates that I am using are bigger than the view port on my screen. This is fine for what I am using it for since scroll bars are automatically added and the user can scroll the bars just fine.
Is there a way that I can use some python or jython scripting to move my viewport to different positions of the underlaying canvas? I want to be able to move the viewport to be in different spots (ie center, upper left, lower right, etc) by clicking some buttons or when I do scripting on other parts of the screen.

Thanks in advance for your help.

this should get you started

1 Like

I ended up using this post as the basis for what I was trying to do.

1 Like