Asset downloader plugin

Works in progress and technical screen shots.

Moderator: joepal

Asset downloader plugin

Postby joepal » Thu Jul 07, 2016 8:13 am

Ok, very very early stages still, but at least there's now a routine for producing a JSON source with meta data about all the existing assets. So far only the clothes assets are filled with URLs to the separate files too, but at least it's a start

http://www.makehumancommunity.org/sites ... ssets.json

My idea is that the plugin downloads and parses this file and then presents lists of assets available for download. Possibly it should also automatically download and cache thumbnails.

I guess this JSON file could also be used if someone wants to write an autodownloader or scraper.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4469
Joined: Wed Jun 04, 2008 11:20 am

Re: Asset downloader plugin

Postby wolgade » Thu Jul 07, 2016 10:00 am

Sorry for getting noobish, but where do I put this file? How do I use it?
wolgade
 
Posts: 795
Joined: Wed Jan 30, 2013 6:50 pm

Re: Asset downloader plugin

Postby joepal » Thu Jul 07, 2016 12:52 pm

You don't yet. The JSON file is just a dumb list of what assets exist. I've still to add any intelligence whatsoever for actually doing anything with it.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4469
Joined: Wed Jun 04, 2008 11:20 am

Re: Asset downloader plugin

Postby joepal » Sat Jul 09, 2016 1:07 pm

First draft of GUI for asset download plugin. Nothing actually works yet.

assetplugin.png
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4469
Joined: Wed Jun 04, 2008 11:20 am

Re: Asset downloader plugin

Postby joepal » Wed Jul 13, 2016 2:43 pm

First actual results. The plugin now synchronizes the asset metadata db with the server, sorts it into categories and downloads screenshots and thumbnails. This makes it possible to browse through the targets (I started there) and see info about the available targets.

Download button still does nothing though.

assetplugin1.png
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4469
Joined: Wed Jun 04, 2008 11:20 am

Re: Asset downloader plugin

Postby loki1950 » Wed Jul 13, 2016 3:45 pm

Good idea to use a separate tab in the GUI Joel it kinda highlights that it is and add-on to the base app though I have a feeling it will be part of the main app eventually :D

Enjoy the Choice :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo Ideapad 320-15ABR Win 10/Mint 19
User avatar
loki1950
 
Posts: 1219
Joined: Thu Dec 18, 2014 6:27 pm
Location: Ottawa,Ontario

Re: Asset downloader plugin

Postby joepal » Sat Jul 16, 2016 3:41 pm

Ok, I think this plugin is ready for general testing at least. It'll probably be a bit buggy, but works in principle.

I've posted a short demo video at https://www.youtube.com/watch?v=DgswsTV ... e=youtu.be
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4469
Joined: Wed Jun 04, 2008 11:20 am

Re: Asset downloader plugin

Postby loki1950 » Sat Jul 16, 2016 3:54 pm

Seems to work quite well have not been bitten by a bug yet ;) Some of the assets do have idiosyncratic tagging though but that is not the plug-in's fault. Browsing the assets is quite easy.

Enjoy the Choice :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo Ideapad 320-15ABR Win 10/Mint 19
User avatar
loki1950
 
Posts: 1219
Joined: Thu Dec 18, 2014 6:27 pm
Location: Ottawa,Ontario

Re: Asset downloader plugin

Postby joepal » Sat Jul 16, 2016 5:24 pm

In my view, if the field values in the asset metadata files differ from the field values in the community repos, then the repo ones are more valid.

Even if someone forgot to change the license setting inside, for example, a MHCLO files, they have at a later point in time shared that file under CC0 or CC-BY explicitly. Thus the license should be considered CC0 or CC-BY.

Quite aside from that, it'd be tedious to write a routine to parse the asset files in order to extract meta-data, so I'm trying to think up excuses for avoiding this. :-)
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4469
Joined: Wed Jun 04, 2008 11:20 am

Re: Asset downloader plugin

Postby wolgade » Sun Jul 17, 2016 4:06 pm

Well done. The plugin downloads the asset and puts it were it belongs. No more manual download of several files. No more thinking about the MH directory structure. I realized two things:

1. Scrolling through the assets might become a problem once we have more assets. Selecting the asset this way is a bit annoying even if you know what you're looking for.

2. Probably a bug: Some illustrations are not shown, especially mine. http://www.makehumancommunity.org/clothes/female_top_01.html looks like this:
screenshot.jpg

That's a pity, because I spent some time on making the illustration at least a little bit visually appealing. I used JPG for illustrations. The displayed illustrations use PNG.
wolgade
 
Posts: 795
Joined: Wed Jan 30, 2013 6:50 pm

Next

Return to WIP (Work In Progress)

Who is online

Users browsing this forum: No registered users and 1 guest