This video shows how to create an API script that:
-Resizes an image to specified dimensions
-Resizes the page to match those dimensons
-Centers the image on the page
-Moves the image to the map layer
Note that this does require a Pro subscription.
This is a handy script to help speed up your campaign prep. If you'd just like the code, you can find it here - https://gist.github.com/nolivo/3f4ee4...
By default, the script is setting the size of the map & page using pixel values. If you'd prefer to use Roll20's units, then check out part 2 - • Automatically Resizing Maps & Pages P...
Roll20 API documentation is available here - https://roll20.zendesk.com/hc/en-us/a...
Also, the map I'm using in this video was created by the amazing Jesper Cyren, whose Patreon can be found here - / cyrensmaps
My Patreon: / nickolivo
Watch video Automatically Resizing Maps & Pages: A Roll20 API Scripting Tutorial online without registration, duration hours minute second in high quality. This video was added by user Nick Olivo 05 March 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 6,88 once and liked it 18 people.