PDA

View Full Version : Export Templates



shem_whistler
Dec 8th, '04, 01:28 PM
Hi all,

When creating export templates for HD, is it possible to perform calulations in the template?

For example I could take the value in a container and make it part of an expression, or is all the number-crunching actioned within HD itself?

Cheers
Shem

RPMiller
Dec 8th, '04, 02:57 PM
I get to be the first that says read the manual! :D

Yes, there is a MATH tag that can be used.

See the docs for more info. ;)

EDIT: Sorry, I was looking for a link that I could provide that would take you to relavent info, but I couldn't find one. Here it is in brief:
<MATH>Variable Operator Variable or Number</MATH> where the variable would be an Export Tag, and the operator can be, in order of operation: ()^*/+-.

shem_whistler
Dec 8th, '04, 03:09 PM
I get to be the first that says read the manual! :D

Yes, there is a MATH tag that can be used.

See the docs for more info. ;)

I did skim through the pdf that came with my download of HD, and couldn't find anything, looked again just now, still not finding it. :(


EDIT: Sorry, I was looking for a link that I could provide that would take you to relavent info, but I couldn't find one. Here it is in brief:
<MATH>Variable Operator Variable or Number</MATH> where the variable would be an Export Tag, and the operator can be, in order of operation: ()^*/+-.

Thanks for the example though, makes sense in my head, will have to try it out now.

Rapier
Dec 8th, '04, 03:13 PM
I get to be the first that says read the manual! :D

Yes, there is a MATH tag that can be used.

See the docs for more info. ;)

EDIT: Sorry, I was looking for a link that I could provide that would take you to relavent info, but I couldn't find one. Here it is in brief:
<MATH>Variable Operator Variable or Number</MATH> where the variable would be an Export Tag, and the operator can be, in order of operation: ()^*/+-.
One of these days, I'm going to get off my butt and build an Export Template that will actually adjust the base DCV for large/small characters.

RPMiller
Dec 8th, '04, 03:24 PM
Make sure that you include the !-- and -- in the tags. I left those out of my example for simplicity.

RPMiller
Dec 8th, '04, 03:26 PM
One of these days, I'm going to get off my butt and build an Export Template that will actually adjust the base DCV for large/small characters.
That could prove useful! I would like to see how you go about it.

Rapier
Dec 8th, '04, 03:29 PM
That could prove useful! I would like to see how you go about it.Right now I'm debating that in my head. The easy route, of course, is to just create 14 different templates: -1, -2, -3, -4, -5, +1, +2, +3, +4, +5 etc. Then in the header of the template do a <MATH>DCV - 1</MATH> kind of thing. Like I said, I have only just started looking into playing with export templates (I'm still trying to get all my characters into HD before I start messing with templates), so all this is VERY premature and off the cuff.

shem_whistler
Dec 8th, '04, 03:29 PM
Make sure that you include the !-- and -- in the tags. I left those out of my example for simplicity.

On the one hand D'oh!

On the other hand Thanks!

I got it to work. :)