Greetings, I currently record all of my campaigns using a secondary browser on a second monitor and a different Roll20 account to hide all the unnecessary or confidential GM stuff. This obviously means I need to quite often pan over to the other monitor to move the camera around to the relevant location on the current map. What I'm looking for is an API that would preferably do two things: Follow a specific party token on the world map by centering the camera on it when it moves, and also center the camera on it when switching pages to a map with the token on it. Center the camera on whichever token is currently up on the turn order. I would obviously want the API to only do these things for the roll20 user that I record with, not all of my players. I was googling around and found a script by Nick Olivo which accomplishes one of these things (center the camera when switching maps), but not all of them. Perhaps this can be expanded on?: on("change:campaign:playerpageid",function(){
var tokens = findObjs({
_name:"Party 1 Token",
_type:"graphic",
_pageid:Campaign().get("playerpageid")
});
var playerStartToken = tokens[0];
if (playerStartToken===undefined){
return;
}
setTimeout(function(){
sendPing(playerStartToken.get("left"),playerStartToken.get("top"),playerStartToken.get("pageid"),"",true);
},2000);
});