How to display center in screen for different size view

I wanna display center in screen when I callback other interface, and I tried that the same size viewer can display the center in the screen if I used the same window.

<---------------------------------------------->

But when I changed different sized viewer it won’t be displayed the center of screen.



Uploading: b6ae2058162913024e465688633349e.jpg…

<---------------------------------------------->

And the last example display center succeedfully but I doesn’t want to use this way, it quite consume momery I think.

Here this all of example file, and I hope different sized viewer can display center in the screen using only one windowCOMP.
perform.1.toe (5.6 KB)

In your Window COMP set Opening Size to Custom and set a width and a height.

I hope it helps!