Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

How to get correct map asset size when dragged on to map without needing to resize

Hi All, I'm looking for some advice regarding assets being at the correct size when dragged on to the map layer without the need to resize them. So I've got some map tiles, 5x8 squares, DPI is set to 72, pixels per square 140x140 as stated in the guides. So my full tile image is 700x1120 pixels @ 72 dpi with a bit depth of 24.All good. Upload it into Roll20 and drag it on to the map, and it takes up 6 squares, sure I can resize it to 5x8 and the alignment is perfect, but how do I get it so that when you drag it on to the map the size is correct without the need to resize every tile? Regards, Dresdon
1495188534
Ziechael
Forum Champion
Sheet Author
API Scripter
Holding the Alt key when dragging assets onto the VTT you can get closer to the default dimensions but it is currently capped at 3x3. My immediate advice would be, as a pro user, install TokenMod, drag all your tiles onto the VTT, select them all and then run the following command in chat: !token-mod --set height|700 width|1120 It will quick set all of the tiles to the right size and then you can use copy and paste to reuse them at your convenience. You can replace the hard coded dimensions with queries if you want to have the flexibility to have other dimensions at your beck and call.
1495305972

Edited 1495306228
plexsoup
Marketplace Creator
Sheet Author
API Scripter
If you need to do this repeatedly for a lot of assets, you could take a look at the psTileResizer script. You'd need to put all the asset ids and sizes in the code though. <a href="https://github.com/Roll20/roll20-api-scripts/blob/" rel="nofollow">https://github.com/Roll20/roll20-api-scripts/blob/</a>... video here:&nbsp; <a href="https://m.youtube.com/watch?v=flz0UyAZDDs" rel="nofollow">https://m.youtube.com/watch?v=flz0UyAZDDs</a>
Not possible. I make my maps in MapTool because of how shitty roll20 handles adding tiles to the map.