Strange issue with files not being able to be categorized
RKane_1
Posts: 3,039
in The Commons
I usually use my Content Library to organize things but there are occasionally some files that, even though they SAY you have categorized them in other locations, don't show up there. Specifically Angelica for G8F and Stylish Shaved Hair. Any suggestions on how to fix this?

Comments
Don't know about Angelica, but Stylish Shaved Hair has a little metadata problem, it seems. The hair figure itself is called "Stylish Shaved Hair Genesis 3 (or 8) Male", but the metadata is looking for "Stylish Shaved Head Genesis 3 (or 8) Male", so they are left in limbo (LOCAL USER product).
Officially, a help ticket would be needed to get it changed at the source so that everyone can benefit. Meanwhile, you can correct this by editing the metadata from the Content Library, or editing the metadata file itself. Doing it with the tools in Studio can be a little confusing, unless you know how it works. Even then, I'm not sure all metadata errors can be corrected that way. Easiest is to correct the text in the .dsx metadata support file, and re-import metadata from DIM. Delete any categorized references to the hair (materials are okay and don't need to be touched) and make a new one to the refreshed item from the Content Library. You should get a properly annotated Hair icon in your category.
Note that if you re-install the product, it will overwrite the metadata with the original bad one, so save the modified version, or replace the one in the archive directly.
Many thanks, North. Don't suppose you have a tutorial ready with step by step instrcutions on how to do that for a simpleton, would you? :)
And I found Angelica. I was looking in the wrong place but that issue does exist with me for the Stylish Shaved Head/Hair set. :)
Working on it. I'm going through the steps myself, seeing as how I have to do it, too...
Correcting metadata errors is usually a lot easier than creating it from scratch. I like to edit the .dsx file directly for small errors like typos. The tools in DAZ Studio can be a little intimidating, and I have been unpleasantly surprised a couple of times.
Assuming DIM installation method. Don't ask me about Connect...
Quick summary: Edit metadata file, re-import metadata or re-install product with modified metadata, refresh file references, clean up. Simple, right?
So, the quickest way to get to the .dsx file is from the Runtime/Support folder by using "Show Installed Files..." in DIM. From the Installed files popup, scroll down the list to "Runtime/Support/DAZ_3D_57499_ yada, yada," and click on it. This will open a Windows Explorer session with the file highlighted.
Open it in your favourite text editor and look for the offending text, in this case "Stylish Shaved Head Genesis 3 Male". There should be 2 instances, one Asset (.duf), one SupportAsset (.duf.png). Simply change the "Head" to "Hair" for both of those, then do the same for "Stylish Shaved Head Genesis 8 Male". That's it for the changes. Save the file and exit the editor. This will update the metadata file, but not the metadata as seen by Studio, yet. Make sure the new file is in the Runtime/Support folder of your library.
You now have to make Studio reload the metadata, either directly in DIM (right-click on the product -> Re-Import Metadata... -> Stylish Shaved Hair for Genesis 3 and 8 Males), or by adding it to the product archive and re-installing the product. Either way will refresh the database.
Go to the Content Library folder with the hair (not the custom category), and the figures should now have the proper annotations (Hair), and be member of the Product, which it was not before. Plus, the Smart Content will now work, if you use it, showing the available material and property presets for the hair when loaded. If someone only uses the Content Library and Smart Content, that's all they have to do.
If you had previously made a reference to the hair figure (by categorizing), you will need to replace it with a new one, because the old reference is still in the database, and the new info won't show up in the category. Categorize the new entry with whatever method you use (copy/paste reference or categorize file), and go to the category. You might be annoyed to find two references to the hair, the old one with no metadata, and one new properly configured. If just the new one, you're done, and you can write your help ticket.
If you do have two different references, there are two ways to remove the pesky old one, but it is not as simple as deleting it from the category, both references will disappear. Either go to Products -> LOCAL USER and remove the references there (you might be shocked to see what's in there). That's a catch-all for any orphaned items, all in alphanumeric order, so scroll/page down to the "S"s, find the 2 Stylish Shaved Hair references and just "Remove Reference..."
Alternatively, if you previously added the new metadata file to the product archive from which it will be installed, un-install the hair and refresh the category folder. You should have one remaining orphaned reference for each hair figure. It is safe to remove them (right-click -> Remove Orphaned Reference...), then just re-install the product to get the good one back, along with everything else. The good thing is that you do not lose your custom category.
Sounds complicated, but I've done it many times. The eventual product update will have the same effect as re-installing with the corrected metadata file, and the old references will have the same problems, since originally the hair figure wasn't part of the Product because the metadata didn't include the right file.
Wow! Holy crap! Thanks! :)