Hi,
I'm trying to get all the textures (diffuse, decal, specular, gloss and bump from the head, torso, limbs and genitals) from a character (for example, "Olympia").
I need the path to the image, not the image itself. Still, if I get the `Texture2D` I can save it into a temporal folder (but it would be better to have directly the url).
Now, you can use this code in order to get the desired `DAZCharacter `:
But I've been looking at VAM's sourcecode and I couldn't find any variable making reference to the path to the image. There's some texture-loading code on `DAZCharacterTextureControl`, but if the `JSONStorableUrl` is empty (as it would be, because I want the "base texture"), no loading at all. But we know that it does works, so someone else should be performing the loading.
If someone can tell me how to get all the (unmodified) base textures of a character by code I'd appreciate it.
Thanks.
I'm trying to get all the textures (diffuse, decal, specular, gloss and bump from the head, torso, limbs and genitals) from a character (for example, "Olympia").
I need the path to the image, not the image itself. Still, if I get the `Texture2D` I can save it into a temporal folder (but it would be better to have directly the url).
Now, you can use this code in order to get the desired `DAZCharacter `:
C#:
string skinName = "Olympia";
DAZCharacterSelector _dazCharacterSelector = containingAtom.GetComponentInChildren<DAZCharacterSelector>();
DAZCharacter []characters = _dazCharacterSelector.characters;
DAZCharacter selected = Enumerable.FirstOrDefault(characters, character => character.displayName == skinName);
But I've been looking at VAM's sourcecode and I couldn't find any variable making reference to the path to the image. There's some texture-loading code on `DAZCharacterTextureControl`, but if the `JSONStorableUrl` is empty (as it would be, because I want the "base texture"), no loading at all. But we know that it does works, so someone else should be performing the loading.
If someone can tell me how to get all the (unmodified) base textures of a character by code I'd appreciate it.
Thanks.