Re: File sanity checker...

Date : Mon, 09 Oct 2006 20:46:13 -0400
To : XSI(at)Softimage.COM
From : François Painchaud <francois.painchaud(at)sympatico.ca>
Subject : Re: File sanity checker...
You can also "augment" the original scntoc file in an OnEndSceneSave event. Straightforward to implement in Python with xml.dom.minidom (parse,
createElement, setAttribute, writexml, etc.). For reference, see http://docs.python.org/lib/module-xml.dom.minidom.html and http://www.oreilly.com/catalog/pythonxml/index.html.


I used this technique very successfully in a plug-in that adds custom XML nodes pertaining to some custom properties, information used later by our proprietary render farm software.

François

-------- Message original --------
Sujet: 	Re: File sanity checker...
Date: 	Tue, 10 Oct 2006 01:16:53 +0200
De: 	guillaume laforge <guillaume.laforge.3d(at)gmail.com>
Pour: 	XSI(at)Softimage.COM


You can create your own "custom scntoc" for your needs.

The way to go is to fired an event when the user save a scene. This way you can run the script/plugin you want to write some scene information (in xml format for example).

On 10/10/06, *Raffaele Scaduto-Medola* <raffaele(at)inch.com <mailto:raffaele(at)inch.com>> wrote:

   Another interesting problem is presenting itself to our production.
   I am finding out that it would be very useful to check basic scene .scn
   information inside XSI which is not automatically put/in the .scntoc
   file.
   The problem is to open XSI, and load a large referenced scene is too
   cumbersom for checking, so I was wondering if

   1- there is any command line tool that can give me more (& quickly )
   text
   information about a file that is not included in the .scntoc file?

   2- if there is a way I can add custom/additional information inside the
   .scntoc file that would be carried with the file (IE when I save/publish
   my scenes?

   I am basically looking for a way to carry more information in the
   .scntoc/xml file so I can quickly parse it instead of having to open a
   binary file in XSI.

   If anyone has develloped any technique for handling this problem, I
   would
   be very curious to hear about it. <http://www.turbolinea.com>


--- Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body: unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.