Create my own save preset?
sebastian.friston_f34eb580c1
Posts: 34
Hello,
Often, I want to save subsets of a character's pose. For example, just the position of the hand, or the facial expressions. Going to Save, Pose Preset then selecting the correct pose controls/bone transforms to export is straightforward but can be a pain if there are a large number of poses to save.
Is there a way to create my own presets, that are Pose Presets, but just contain a subset of the properties?
SJ
Comments
As another user that also does this I have been looking into the SDK and Scripting. I believe this is possible but do not yet understand all the commands enough to get it working. Should be able to just create files for each pose or combo then open a dialog to save the files out. If any others are working on this please let us here know.
DAZ Studio » v4.x » Reference Guide » Scripting » API Reference » Samples » File Input/Output » Save a Pose Preset
-Rob
That is great!
I have modified the example to initialise a DzFileIOSettings object with a string of settings that I prepare by displaying the dialog and then writing to file with the toString(), and then use this to save the preset.
I find that doSaveWithOptions() and doSave() both have an issue (bug?) whereby if RunSilent is not true, they display the DzFileIOSettings configuration dialog. However, the dialog does not respect the settings passed in the DzFileIOSettings object. As a result the selected properties to export are overridden.
The solution is to use the RunSilent flag as in the example, but then this does not display the File Save As dialog either, so I display this manually with FileDialog.doFileDialog().
It would be good to know the cause of this, as the proper Save As dialog has things like author properties and remembers the last saved location, etc.
But, it does work now as it is, which is what is most important. Thank you!