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

True Page copy API Issue with Tokens

Hi there, I've added True Page Copy to a game I'm experimenting with for the moment.  I'm finding it is not copying all tokens when I duplicate a page. I'm hoping someone can help me understand where I am going wrong. As far as I can tell, all the tokens involved are part of my library.  Here is a screen shot of a test page.  I have highlighted trees in my library on the right hand window.  It is these trees that do not duplicate.  One tree does.  Note that the trees that are not duplicating come from the free marketplace purchase called Roadside Ambush Pack.  The tree that does copy comes from a token search for "Tree" and the web site is indicated in the screen shot. All trees had been right clicked and I chose "Add to Library".  I also copied all the trees to a folder called Terrain. When I duplicate this page, the tree to the left, above, is from the web search and it duplicates fine.  The ones from Roadside Ambush Pack do not as can be seen below: Can someone suggest what I might have messed up? I have another API script on this game, TokenMod, as seen in the screen shot below: Thank you in advance for any help on this.  If you need to get into my game, let me know, thanks.  
I believe the API is restricted from working with marketplace items in your library because of possible copyright issues. You would have to download the art from the marketplace and upload if to your personal storage to have it accessible to the API.
The API cannot access images from the Marketplace. The "Add to Library" button just puts a pointer to the image in your library; the image itself is still in the Marketplace, out of reach of the API. You need to actually download the set, select the images you want to use, and upload them into your Art Library for an API script to be able to use them.
Rabulias said: The API cannot access images from the Marketplace. The "Add to Library" button just puts a pointer to the image in your library; the image itself is still in the Marketplace, out of reach of the API. You need to actually download the set, select the images you want to use, and upload them into your Art Library for an API script to be able to use them. Axecleft said: I believe the API is restricted from working with marketplace items in your library because of possible copyright issues. You would have to download the art from the marketplace and upload if to your personal storage to have it accessible to the API. That makes perfect sense to me and was probably mentioned in the topic I found here which spoke about images being in the library, but I did not realize exactly what that meant.  I do now. Thank you both very much. :)