Can Hierarchical Poses/Materials Be Converted?

Fae3DFae3D Posts: 2,842

I seem to have collected an enormous amount of poses over the years, for all different generations, animals, etc.  I have some freebie scripts that let me convert these back and forth, and that works great for regular poses.  Likewise, I can apply Daz Horse 3 poses to Centaur 9 and such, even without a script.  But hierarchical poses are always a problem.  They used to be rare, but now it seems like just about every other pose is an "H. Pose".  Is there any way to convert a hierarchical pose to a regular one, so that it can be converted/applied to other characters?

Also, while I'm here, I have the same question about hierarchical materials.  Those are even worse.  If I don't have every single thing loaded exactly how they want it, they often won't work at all.  Sometimes I want to apply a "monster" skin to a non-monster, without all the geographs and such.  Is there any way these can be converted to regular materials?

Comments

  • GordigGordig Posts: 10,599

    It's as simple as loading a hierarchical preset and saving it as a non-hierarchical preset. I don't know of a way to do that at scale, but I'm sure they exist.

  • felisfelis Posts: 5,745

    Just be aware that hiercical materials might add materials to different objects, and these will each need a new material preset.

  • crosswindcrosswind Posts: 9,545

    The more hierarchical nodes there are within an H.Pose Preset or H.Mat Preset, the more cumbersome it'll be for converting to Pose / Material Presets.

    1) As for H.Mat Presets, actually you don't have to convert them at all. Since DS only checks if the Node Name of selected root node is as same as the one that is saved within H.Pose / H.Mat Preset, you just need to modify the Node Name of the selected figure. For instance, you want to apply a G9's H.Mat Presets of clothing on a G8F, select G8F, open Scene Identification..., change Node Name to Genesis9, then apply H.Mat Preset.  Even if there're some sub-node items of clothing missing on G8F, it'll still work without throwing you any error message.

    2) As for H.Pose Presets, especially for the root node, you have to convert them if the bone structure of the figures are different, e.g. G8 > G9 or vice versa... as well as the posed for the sub-node figures or Smart Props as their parent nodes may also have different Node Names ~~

  • GordigGordig Posts: 10,599

    felis said:

    Just be aware that hiercical materials might add materials to different objects, and these will each need a new material preset.

    That's precisely why the OP wants to convert to a non-hierarchical material preset: they just want the main skin.

  • maikdeckermaikdecker Posts: 3,037

    Fae3D said:

    Is there any way to convert a hierarchical pose to a regular one, so that it can be converted/applied to other characters?

    It takes a bit effort. First you have to check if the .duf files of the poses are "encrypted" (aka compressed). If no, just go to the "text editor" part later. If yes, use something like Winrar to uncompress and save. So when you have the .duf files in the uncompressed state, use a text editor with a batch edit option. I usually use Notepad++ for that. Use the "search&replace" option and change the "preset_hierarchical_pose" to "preset_pose". Save the edited .duf files. They are now usuable on other Generations.

    The next step depends on how you usually convert poses. If you have one of those tools to do batch converts, it's easy now. If you only have a convert script for one pose at the time, it will take longer.

    Not sure if the same approach might work on textures/materials, but you can try, I guess.

  • Fae3DFae3D Posts: 2,842

    Thank you, everyone, I really appreciate the help!!!  crosswind, the Node thing sounds doable, I'll give that a try and see if I can figure it out.  Gordig, when you say "saving it as a non-hierarchical preset", do you mean just saving it using the File>Save As> Pose Preset?  If so, I had no idea that would convert it, that would be great!  It might take awhile to save them all out, but at least then I'd have them.  felis, you're right, that would be a problem, but as Gordig said, thankfully I only want the main skin, none of the other objects.  maikdecker, I'm REALLY not good with computers, I just know Daz and a couple image editors well enough to get by.  Anything that involves anything resembling scripting scares the daylights out of me, with my bad computer luck I'm pretty sure I could accidentally create a wormhole that would eat my computer or something LOL!  I really appreciate the detailed instructions, though, they will probably help some braver person than me sometime if they search for the same thing ^_^

  • Richard HaseltineRichard Haseltine Posts: 107,945

    maikdecker said:

    Fae3D said:

    Is there any way to convert a hierarchical pose to a regular one, so that it can be converted/applied to other characters?

    It takes a bit effort. First you have to check if the .duf files of the poses are "encrypted" (aka compressed).

    Those are not the same, though both do make them unrtreadable to humans. Content files are not generally encrypted (only the Premier-exclusive at the moment)

    If no, just go to the "text editor" part later. If yes, use something like Winrar to uncompress and save. So when you have the .duf files in the uncompressed state, use a text editor with a batch edit option. I usually use Notepad++ for that. Use the "search&replace" option and change the "preset_hierarchical_pose" to "preset_pose". Save the edited .duf files. They are now usuable on other Generations.

    They will still be set up to affect multiple items so this unlikely to be a full conversion.

    The next step depends on how you usually convert poses. If you have one of those tools to do batch converts, it's easy now. If you only have a convert script for one pose at the time, it will take longer.

    Not sure if the same approach might work on textures/materials, but you can try, I guess.

  • Richard HaseltineRichard Haseltine Posts: 107,945

    Fae3D said:

    Thank you, everyone, I really appreciate the help!!!  crosswind, the Node thing sounds doable, I'll give that a try and see if I can figure it out.  Gordig, when you say "saving it as a non-hierarchical preset", do you mean just saving it using the File>Save As> Pose Preset?  If so, I had no idea that would convert it, that would be great!  It might take awhile to save them all out, but at least then I'd have them.  felis, you're right, that would be a problem, but as Gordig said, thankfully I only want the main skin, none of the other objects.  maikdecker, I'm REALLY not good with computers, I just know Daz and a couple image editors well enough to get by.  Anything that involves anything resembling scripting scares the daylights out of me, with my bad computer luck I'm pretty sure I could accidentally create a wormhole that would eat my computer or something LOL!  I really appreciate the detailed instructions, though, they will probably help some braver person than me sometime if they search for the same thing ^_^

    You have to save a separate preset for each separate item in the hierarchy that needs to be affected.

  • crosswindcrosswind Posts: 9,545

    Fae3D said:

    Thank you, everyone, I really appreciate the help!!!  crosswind, the Node thing sounds doable, I'll give that a try and see if I can figure it out.  Gordig, when you say "saving it as a non-hierarchical preset", do you mean just saving it using the File>Save As> Pose Preset?  If so, I had no idea that would convert it, that would be great!  It might take awhile to save them all out, but at least then I'd have them.  felis, you're right, that would be a problem, but as Gordig said, thankfully I only want the main skin, none of the other objects.  maikdecker, I'm REALLY not good with computers, I just know Daz and a couple image editors well enough to get by.  Anything that involves anything resembling scripting scares the daylights out of me, with my bad computer luck I'm pretty sure I could accidentally create a wormhole that would eat my computer or something LOL!  I really appreciate the detailed instructions, though, they will probably help some braver person than me sometime if they search for the same thing ^_^

     @Fae3D just in case... you can access Scene Identification... via Edit > Figure > Scene Identification...

    BTW, as for the "main skin" that you want, e.g. apply a monster skin H.Material Preset to other non-monster characters as you said before, that really depends on the product that you're using. For instance, if the skin textures are geo-grafts dependent with different UVs, like HH Demon for Genesis 9 on which there're geo-grafts of head, feet and claws... converting its H.Material Presets to non-H.Mat Presets will help nothing... you have to convert texture maps which'll be a totally different story.

  • WendyLuvsCatzWendyLuvsCatz Posts: 40,045

    ...and just like that, a suggestion for Totte code66's next script cheeky

    Hierarchial pose and material splitter

    have mercy on my wallet crying

  • GordigGordig Posts: 10,599

    Richard Haseltine said:

    Fae3D said:

    Thank you, everyone, I really appreciate the help!!!  crosswind, the Node thing sounds doable, I'll give that a try and see if I can figure it out.  Gordig, when you say "saving it as a non-hierarchical preset", do you mean just saving it using the File>Save As> Pose Preset?  If so, I had no idea that would convert it, that would be great!  It might take awhile to save them all out, but at least then I'd have them.  felis, you're right, that would be a problem, but as Gordig said, thankfully I only want the main skin, none of the other objects.  maikdecker, I'm REALLY not good with computers, I just know Daz and a couple image editors well enough to get by.  Anything that involves anything resembling scripting scares the daylights out of me, with my bad computer luck I'm pretty sure I could accidentally create a wormhole that would eat my computer or something LOL!  I really appreciate the detailed instructions, though, they will probably help some braver person than me sometime if they search for the same thing ^_^

    You have to save a separate preset for each separate item in the hierarchy that needs to be affected.

    As I said earlier in the thread, and as the OP confirmed in the post you quoted, they only want to save a preset for the main skin.

  • maikdeckermaikdecker Posts: 3,037

    Richard Haseltine said:

     

    If no, just go to the "text editor" part later. If yes, use something like Winrar to uncompress and save. So when you have the .duf files in the uncompressed state, use a text editor with a batch edit option. I usually use Notepad++ for that. Use the "search&replace" option and change the "preset_hierarchical_pose" to "preset_pose". Save the edited .duf files. They are now usuable on other Generations.

    They will still be set up to affect multiple items so this unlikely to be a full conversion.

    As there are many hierarchical poses right now don't have any additional targets but only the main figure, an easy way to batch change them is in my opinion always useful.  

  • maikdeckermaikdecker Posts: 3,037

     maikdecker, I'm REALLY not good with computers, I just know Daz and a couple image editors well enough to get by.  Anything that involves anything resembling scripting scares the daylights out of me, with my bad computer luck I'm pretty sure I could accidentally create a wormhole that would eat my computer or something LOL!  I really appreciate the detailed instructions, though, they will probably help some braver person than me sometime if they search for the same thing ^_^

    No scripting or anything involved. Nothing above some everyday tasks like copy/paste, pressing buttons and using some freeware tools (editor and un-zipper/rar'er). But I've seen enough people with problems like yours in my working days to understand Your feelings. I sometimes forget that not everyone is playing around with computers - for fun, mostly, not through the job - for 40+ years like I am wink 

Sign In or Register to comment.