Filters in asset downloader

Works in progress and technical screen shots.

Moderator: joepal

Filters in asset downloader

Postby joepal » Thu Apr 06, 2017 2:43 pm

I've taken some time to take another look at the asset downloader. I still have on the todo to implement expressions, but to start with I'm looking at implementing a few filters:

filter.png
filter.png (8.92 KiB) Viewed 6563 times


Any other suggestions for properties one might want to filter downloadable assets according to?
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 3943
Joined: Wed Jun 04, 2008 11:20 am

Re: Filters in asset downloader

Postby RobBaer » Thu Apr 06, 2017 3:56 pm

Some quick starter ideas that come to mind (at least fthink of just clothes; perhaps a set of filter for each type of asset?):
gender: male, female, unisex
location on body: head, thorax, legs, whole-body
type of clothing (for clothing): formal, casual, historical, superhero, futuristic
Completeness: no material, single material, multiple materials, textured, advanced maps

I don't know which of these make most sense, but it should help start a discussion.
User avatar
RobBaer
 
Posts: 1070
Joined: Sat Jul 13, 2013 3:30 pm
Location: Kirksville, MO USA

Re: Filters in asset downloader

Postby joepal » Thu Apr 06, 2017 4:04 pm

A general limitation is that the filter function can only act upon information that actually exists. For example, there is currently no way to specify what gender a clothes asset is for when uploading it, and there's no way for the asset downloader to guess this.

Completeness might be possible though. That'd only require a check for if an asset has the required files.

If you open the asset DB in a web browser, you can see what information is available: http://www.makehumancommunity.org/sites ... ssets.json
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 3943
Joined: Wed Jun 04, 2008 11:20 am

Re: Filters in asset downloader

Postby CallHarvey3d » Thu Apr 06, 2017 5:13 pm

is a search possible? like a search for a term that might show up in title, category or description, that way if im looking for a hat and search "hat" the word will likely be in one of those fields and return a result
or if i search "tennis" i would get results for clothes and poses which would probably be beneficial
CallHarvey3d
 
Posts: 246
Joined: Wed Mar 09, 2016 3:33 pm

Re: Filters in asset downloader

Postby joepal » Thu Apr 06, 2017 6:32 pm

"containing term in title" and/or "containing term in description" should be possible to implement. That's a good idea.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 3943
Joined: Wed Jun 04, 2008 11:20 am

Re: Filters in asset downloader

Postby Aranuvir » Thu Apr 06, 2017 7:47 pm

With regex option :D.
Aranuvir
 
Posts: 1249
Joined: Sun Oct 12, 2014 2:12 pm

Re: Filters in asset downloader

Postby joepal » Fri Apr 14, 2017 1:21 pm

I ended up doing a heavy refactoring of the entire asset downloader plugin, to support more elaborate management and filtering. This is a first screenshot of the new filter listing actually working:

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

Re: Filters in asset downloader

Postby joepal » Fri Apr 14, 2017 1:22 pm

And oh, it seems I've forgotten to change the title back since I made the "MakeTherapist" screenshot...
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 3943
Joined: Wed Jun 04, 2008 11:20 am

Re: Filters in asset downloader

Postby CallHarvey3d » Fri Apr 14, 2017 1:48 pm

this is awesome
CallHarvey3d
 
Posts: 246
Joined: Wed Mar 09, 2016 3:33 pm


Return to WIP (Work In Progress)

Who is online

Users browsing this forum: Google [Bot] and 1 guest