I want to write a DIM filter... [Update: got my path filter working, recipe inside]
Skiriki
Posts: 4,975
So, I noticed that something is missing from the filters in "Installed" section of DIM: sort by install directory. (Since I'm a freak who has also sorted content according to general content type.)
Basically, I need to figure out if there's a way to ferret install path, and then have DIM sort according to it. This would make some operations easier.
Edit: Never mind, I seem to be a moron today, as I just stumbled upon "Path".
Post edited by Skiriki on
Comments
For the record, if you want to make this script too, head over to wherever your DIM keeps 'Filters' folder.
In my case, it is: C:\Users\Public\Documents\DAZ 3D\InstallManager\Filters\
There, make a directory called "Path".
Then make a .txt file, named like Creatures.txt, assuming that you have a folder named "Creatures" where you save non-humanoid-based figures, like dragons and dinosaurs and animals and whatever.
Put in this to the text file: path::rx::ci::^.*Creatures$
Save and test in DIM.
Replace "Creatures" with whatever install directory name you use for things, like "People" or "Nature" or whatevs. You can refine this with a better regexp, too, but this seems to do in a pinch and I really don't wanna overthink too much, regexps are famous for "You got a problem. You decided to use regexp. Now you have two problems." kind of deal.
You can also type the text in DIM, to make sure it's working, and then save a preset from there by clicking the magnifying glass icon next to the text box and selecting Save Filter from the menu.
Yup, I just had a regexper tool at hand, so that was pretty much the fastest way for me. But yeah, that works too.