Jump to content
Hash, Inc. Forums

Project Files in JSON format


Rodney

Recommended Posts

  • Admin

Just as a general curiousity, here's what an empty Project file looks like in JSON format:

 

{
"PROJECT": {
"POSTEFFECTS": "\n",
"IMAGES": "\n",
"SOUNDS": "\n",
"MATERIALS": "\n",
"OBJECTS": "\n",
"ACTIONS": "\n",
"CHOREOGRAPHIES": "\n",
"FileInfo": "\nEmbedded=FALSE\nCreatedBy=YourNameHere\nOrganization=TheAgency\nUrl=https://www.hash.com/forums/\nEmail=firstname.lastname@gmail.com\nLastModifiedBy=ModifiedBy\n",
"__text": "\nProductVersion=19\nRelease=19.0 PC\n\n\nSelected=TRUE\nFPS=30\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nFileInfoPos=253\n"
}
}

 

 

When converting back (to xml) there are a few formatting things to watch out for:

 

Embedded=FALSE
CreatedBy=YourNameHere
Organization=TheAgency
Email=firstname.lastname@gmail.com
LastModifiedBy=ModifiedBy
<__text>
ProductVersion=19
Release=19.0 PC
Selected=TRUE
FPS=30
FileInfoPos=253

 

Extraneous text in red. The extra space needs to be removed as well.

Link to comment
Share on other sites

  • Admin

As an aside...

 

It would be nice if A:M could be forgiving of extra entries such as ... and extra space so that in addition to generally compatibility comments could be entered inside that would not immediately corrupt the file.

 

Update: Actually, A:M may already be forgiving of the and extra spaces. As long as the first line is removed.

And of course the file cannot be named with the extension .xml but needs to be .prj.

 

Also, I can see where leaving files unembedded can be advantageous when working with A:M files as xml assets.

That simplifies things considerably at the local level.

 

 

xmlView.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...