Jump to content


Photo
- - - - -

Project Files in JSON format


  • Please log in to reply
1 reply to this topic

#1 Rodney

Rodney

    A:M Bot 14309

  • Admin
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 6916 posts
  • Rodney Baker
  • *Admin*
  • Illinois (not Japan)
  • subscriber
  • Windows

Posted 23 February 2018 - 03:20 AM

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...=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:

 

<?xml version="1.0" encoding="UTF-8" ?>
<PROJECT>
<POSTEFFECTS></POSTEFFECTS>
<IMAGES></IMAGES>
<SOUNDS></SOUNDS>
<MATERIALS></MATERIALS>
<OBJECTS></OBJECTS>
<ACTIONS></ACTIONS>
<CHOREOGRAPHIES></CHOREOGRAPHIES>
<FileInfo>
Embedded=FALSE
CreatedBy=YourNameHere
Organization=TheAgency
Email=firstname.lastname@gmail.com
LastModifiedBy=ModifiedBy
</FileInfo>
<__text>
ProductVersion=19
Release=19.0 PC
 
 
Selected=TRUE
FPS=30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
FileInfoPos=253
</__text>
</PROJECT>

 

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

 

"Animation is 90 percent hard work.  The other half is entirely mental!"
See my effort to think about the art of animation at: My Blog
Want to learn A:M? Start TaoA:M

#2 Rodney

Rodney

    A:M Bot 14309

  • Admin
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 6916 posts
  • Rodney Baker
  • *Admin*
  • Illinois (not Japan)
  • subscriber
  • Windows

Posted 23 February 2018 - 03:23 AM

As an aside...

 

It would be nice if A:M could be forgiving of extra entries such as <text>...</text> 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 <text> 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.

 

 

Attached Thumbnails

  • xmlView.jpg

"Animation is 90 percent hard work.  The other half is entirely mental!"
See my effort to think about the art of animation at: My Blog
Want to learn A:M? Start TaoA:M




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users