Re: carraMeL updated to v. 1001 2005-05-18 - By Jasen Jacobsen
Back --- In Carrara@(protected), "markdesmarais" <markdesmarais@(protected)> wrote: > > I think it should be possible to save as/open XML files as a single > plugin rather than doing it in each plugin. . . does that make > sense? There are samples for exporting and importing in the SDK.. . > would that be a worthwhile effort??
Hmmm.... If Eovia won't XMLize their format, the community does it for them? Write an importer/exporter for this CarraMeL (CarML?) that can be used right from within Carrara. If it takes off, Eovia can adopt the format themselves - much as they've incorporated a number of plugins into the base app.
The first thing that needs to be done is to generate well-formed XML. Right now the elements "ren:" and "ren;" are bad. The latter because it's invalid, the former because it's an improper use of the ":" character. I propose that the XML element name become <ren> with the fourth character becoming an attribute like <ren qualifier=";">. Unfortunately, this doesn't handle the general case where there may be other elements that have invalid XML tag names, but I don't see any other than those two.
Next, are those elements that have multiple values after them like: WBC1 0.5,0.5,0.5. To be good XML, those values ought to be broken up into separate attributes like <WBC1 a="0.5" b="0.5" c="0.5"/>.
Finally, is the "AdUV" element. Unlike every other item, this appears to have some qualifier immediately following it, with the values on the next line: AdUV 2 0.68986654,0,0.68986654,1
It would be interesting to test whether the line breaks are significant, or if Carrara would parse correctly if all the values were on one line. Unfortunately, it presents a special case to the XMLizer: If the next line starts with a number then add it to the attributes of the current element - or somesuch.
FWIW, I use XML extensively at work - devising schemas, writing XSLT, etc. I'd be very happy to offer some expertise on this project. I'm in the middle of moving into a new house, so I don't know that I'll be able to provide any coding support, though.
Good project. I hope it turns into something.
- Jasen.
Welcome Yahoo Members!
http://www.eovia.com Yahoo! Groups Links
<*> To visit your group on the web, go to: http://groups.yahoo.com/group/Carrara/
<*> To unsubscribe from this group, send an email to: Carrara-unsubscribe@(protected)
<*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
|
|