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

New Dev with Imgsrc questions.

Hello all, I'm new to the community, and I have a question about the Imgsrc thing.

My friend is an artist that is very popular around the roll20 marketplace, and I was hoping to make some little tools that could be used with her assets. IE placing tiles and tokens on the table and such.

I've done a bit of digging on the forums and on the use guide, and it seems like in order to interact with an asset, the script user needs to manually build something like a Rollable table, or you need to use images already present in a library (I'm still studying the implications of this).

what I'm hoping to be able to do is to create a little script-tool that someone who purchases her content could easily use, without the hassle of manually setting up a Rollable table or some such.

is there ANY solution to this problem as of yet? 
July 27 (8 years ago)
The Aaron
Pro
API Scripter
There isn't.  The API can only create a graphic object with an image that is uploaded to a User's Library, so no images from out on the web and no images from on the marketplace.  Check out this function which checks to make sure an image is creatable: https://wiki.roll20.net/API:Cookbook#getCleanImgsr...

Stephen S. and I have spent hours trying to come up with ways to make this easier, but in the end there really wasn't a good method.  It's sad because it would be so nice to create any marketplace image a user owned the rights to use.  I have several scripts that are ready to go on that front, but simply not worth the effort otherwise.

The alternative to accessing marketplace images is talking people through:
  1. Download the Zip of a Marketplace set and unzip it.
  2. Upload each file to your User Library
  3. Collect the Image URL (not an easy thing to talk people through, I have some scripts to make it easier, but still not easy),
  4. Edit or configure the script with the new URLs.
Stephen S. has many dungeon building scripts that will do that, but the tedium of getting it set up kind of kills it for him.
The aaron! I've heard legend of you.

And a friend that I'm going to Gen con with informs me that we will be meeting there :) so hello in advance, I'm Joseph and I'm a software engineer!

I really really really wish that it were easier to couple marketplace sets with scripts as yoiu said. Without some more back end support it seems tough. (Ownership paradigms and the like).

one thing that I've been scratching my head about is the fact you seem to be able to access images in OTHER people's libraries. So, perhaps something that can be done is to create a dummy account whose sole purpose is to hold library images? I haven't explored this at all, but I just noticed on these forums that I was able to click on and view other people's library images that they had posted. Even if it did work, I'd be giving people free access to premium art assets so I suppose this is a no go.

I wonder if there is something I can do to help, because this seems like something that would be really welcome..
July 27 (8 years ago)
The Aaron
Pro
API Scripter
Ha!  My reputation precedes me. =D  Now I'm curious who you're talking about... could it be Badger? We should certainly Mead it up at GenCon. =D

You are correct regarding User Libraries.  It has all sorts of implications, as it actually INCREASES the likelihood of pirating Marketplace content, as the only way to validly use it in an API script exposes it to anyone.  Particularly once something like one of Stephen's scripts have been set up, with the source edited to have valid links to the images in a User Library, copying the script for a friend so they don't have to upload and edit the same way becomes more likely and then it's just out there.
Haha I'm afraid your reputation DOES proceed you, and wow someone invested points in Intuition, it is badger :) and yes, we shall mead!

And darn about the scripts.... T_T
July 27 (8 years ago)
The Aaron
Pro
API Scripter
MUHAHAHAHAHAHAHA.  Excellent!  That's good, because I met 2 other she pronoun artists last year and don't recall either of their names. =D  So, you wouldn't happen to be a software engineer in the game industry, would you? 
I wouldn't call what I'm doing now Game industry, but it is a very related industry.

I used to be in video games proper 5 years ago. Started off doing low level network code, and ended up as the emergency everything coder.

And yeah I figured it might be bc I said "she/her" lol.
July 27 (8 years ago)
The Aaron
Pro
API Scripter
I'm sure we'll get on swimmingly! =D
July 28 (8 years ago)
Lithl
Pro
Sheet Author
API Scripter

Joe P. said:

I just noticed on these forums that I was able to click on and view other people's library images that they had posted.
While it's true that an API script can create a graphic with an image from anyone's library, that has nothing to do with seeing images on the forums. Images posted to the forums are separate. =)