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
Смотрите видео Automatically Resizing Maps & Pages: A Roll20 API Scripting Tutorial онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Nick Olivo 05 Март 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 6,889 раз и оно понравилось 189 людям.