Or you can try other solutions; one is like this,
This node will align the viewports , based on your given template sheet viewports locations.
Or you can try other solutions; one is like this,
This node will align the viewports , based on your given template sheet viewports locations.