Actually this is for creating the morph deltas as they will be contained in and used by the Genesis figure, it does not "turn on" the morph at all, as Genesis works differently in that regard. To do that, you will need to create a separate .DSF pose file. To simply turn on/off ("INJ/REM") a single morph target this is very easy:
Morph ON complete .DSF file:
{
"file_version" : "0.5.0.0",
"asset_info" : {
"id" : "/Presets/Characters/YourFolder/YourCharacter/YourCharacter_ON.dsf",
"type" : "preset_shape",
"contributor" : {
"author" : "Your Name",
"email" : "[email protected]",
"website" : "http://www.yourdomain.com"
},
"revision" : "1.0",
"modified" : "see file date"
},
"pedigree" : [
],
"scene" : {
"animations" : [
{
"url" : "#YourCharacter:?value",
"keys" : [ [ 0, 1 ] ]
}
]
}
}
Morph OFF complete .DSF file:
{
"file_version" : "0.5.0.0",
"asset_info" : {
"id" : "/Presets/Characters/YourFolder/YourCharacter/YourCharacter_OFF.dsf",
"type" : "preset_shape",
"contributor" : {
"author" : "Your Name",
"email" : "[email protected]",
"website" : "http://www.yourdomain.com"
},
"revision" : "1.0",
"modified" : "see file date"
},
"pedigree" : [
],
"scene" : {
"animations" : [
{
"url" : "#YourCharacter:?value",
"keys" : [ [ 0, 0 ] ]
}
]
}
}
Of course you replace the file names and other contained info as appropriate.
Regarding changing the file name and/or location for a .DSF morph file, these files are tricky and very precise- one character out of place and it won't work. To change the name and/or location of a morph target, you must do it consistently throughout the entire file.
There is an "id" line at the top of the file that must contain the exact file name and path of the .DSF file. In this, as well as the other critical "id" line at the end of the file, any space characters must be represented with the hexadecimal equivalent [PERCENT]20 (actual percent sign followed by the number 20).
Unfortunately, this forum's software interprets [PERCENT]20 as a space, even within the code function, so in the examples below replace [SPACE] with the actual percent sign followed by the number 20 instead.
First 4 lines of .DSF morph target file:
{
"file_version" : "0.5.0.0",
"asset_info" : {
"id" : "/data/DAZ[SPACE]3D/Genesis/Base/Morphs/Your[SPACE]Name/Product/Your[SPACE]Morph.dsf",
There are two more lines in a section at the very end of the file where the name must also be changed if you edit the name after creation:
"scene" : {
"modifiers" : [
{
"id" : "Morph[SPACE]Name_0",
"url" : "#Morph Name"
}
]
}
note that in the "url" line a space can be used and [PERCENT]20 is not needed. Anyway that should get you through the basics of creating a new morph for Genesis and a couple of pose files for turning the morph on and off. Good luck!
