Create .unity file outside Unity3D environment

I needed to create scenes for Unity3D in Adobe AfterEffects. To do this, i am writing a plugin that makes exports Unity3D readable format. This fomat may be only a text script file or XML?

You can use XML. If you want to parse XML easily, you'll want to include the System.Xml namespace. Like so:

Javascript

import System.Xml;

C#

using System.Xml;

Then you'll load up the file however you want (using System.IO or Unity's WWW class). You can use Load with an IO stream or use LoadXml with a string representation of your XML as in the following

C#

XmlDocument document = new XmlDocument ();
document.LoadXml (myXmlString);

Javascript

var document : XmlDocument = XmlDocument ();
document.LoadXml (myXmlString)