Forum: Poser Technical


Subject: File format question

odf opened this issue on Jul 07, 2010 · 17 posts


odf posted Wed, 07 July 2010 at 5:45 AM Online Now!

Yes, I'm talking library files. I might be interested in scene files at some point, too, but not at the moment. I should have expressed myself more clearly, though: I'm interested in anything that has its parameters in the following line or lines, but not packaged into a pair of curly braces.

See, I've written some code that parses a cr2, pz2 etc and internally creates a tree structure, and an API to manipulate that tree structure, which I can then write out to a new file. Now I'm working on a script to refactor some JCM code for Antonia. For that I'd like to have the valueOpDeltaAdd commands as nodes with all their parameter lines as children to make it easier to move them around and such. While I'm at it, I thought it would be good to have the same structure for all the other commands with that kind of syntax.

If braces are present, that makes parsing easy. Likewise if the command and all its parameters are in one line. The remaining case is the tricky one because one needs to know which commands are affected and how many lines of parameters each takes.

-- I'm not mad at you, just Westphalian.