Decoding from a text(?) file to animate morphs

Is it possible to decode from an animation file format to animate morphs using Daz? 

Comments

  • pdr0pdr0 Posts: 204

    Is it possible to decode from an animation file format to animate morphs using Daz? 


    Which "animation file format" ?

    DS's animated pose, shaping, and properties presets are essentially text files . They can be read and opened in any text editor if you saved it without compression.

    When you merge an animated shaping preset, that's essentially what's happening - a text file with keyframe data is animating morphs in DS

     

  • Was thinking of creating my own custom format but perhaps I could have my app write to an existing format.

    What's the best animation format for morphs for Daz? 

  • JD_MortalJD_Mortal Posts: 760
    edited September 2019

    Was thinking of creating my own custom format but perhaps I could have my app write to an existing format.

    What's the best animation format for morphs for Daz? 

    The format you need is within the files. It just uses standard brackets and indentations, similar to a JSON or RUBY format, which is obviously custom to Daz, and the components within. You will have to see what the output of a simple, and a complex animation looks like, and match that format.

    Only some of the files are "gzip" compressed files. Which can be unzipped with windows native unzip or "compressed folder" tool, I believe, if you just rename it to "whateverfilename.zip". On the reverse, you should be able to zip it back up again, or leave it unzipped. As long as you restore the file-extension back to what it was. (If you use 7Zip, it will show you the archives compression information. I think windows hides that info, just showing that it is "an archive".)

    Here is a sample of a "Pose", which is just an animation with one frame.

    {	"file_version" : "0.6.0.0",	"asset_info" : {		"id" : "/FREE_ITEMS/Christmast%20Pillow/Poses/Genesis%208%20Female.duf",		"type" : "preset_pose",		"contributor" : {			"author" : "Vittorio aka Muscleman",			"email" : "",			"website" : ""		},		"revision" : "1.0",		"modified" : "2017-11-08T21:58:36Z"	},	"scene" : {		"animations" : [			{				"url" : "name://@selection/lSmallToe4_2:?rotation/x/value",				"keys" : [ [ 0, 0 ] ]			},			{				"url" : "name://@selection/lSmallToe4_2:?rotation/y/value",				"keys" : [ [ 0, 0 ] ]			},			{				"url" : "name://@selection#pCTRLWaistBend:?value/value",				"keys" : [ [ 0, -0.2380952 ] ]			},			{				"url" : "name://@selection#pCTRLWaistSide:?value/value",				"keys" : [ [ 0, 0 ] ]			},			{				"url" : "name://@selection#pCTRLWaistTwist:?value/value",				"keys" : [ [ 0, 0 ] ]			}		]	}}

     

    It hilights most accurately to JSON script, but it might be a RUBY format too. They are real similar. Unfortunately, the forums don't seem to display the actual "Format coloring". Though, it shows the coloring in the post-edit view, odd! (Not sure why they have the option to post code, in various formats, if they aren't going to display the actual formats? :P )

    Post edited by JD_Mortal on
  • Was thinking of creating my own custom format but perhaps I could have my app write to an existing format.

    What's the best animation format for morphs for Daz? 

    You could write to DSON http://docs.daz3d.com/doku.php/public/dson_spec/start

Sign In or Register to comment.