[CS1] System Template Variables
There are several template variables that are always available in the design template language. This page documents all of them. All system variables start with $_. and end with their name.
$_.width | The width of the component you are working on. For example, a Poker Deck would have a width of 825 pixels. | |
$_.height | The height of the component you're working on. For example, a Poker Deck would have a height of 1125 pixels. | |
$_.mywidth | The width of the current step being rendered. So if you've defined a box that was 200 pixels wide, this would show 200. | |
$_.myheight | The height of the current step being rendered. So if you've defined a box that was 200 pixels tall, this would show 200. | |
$_.centermex | The number of pixels you would need to assign to a step's X position to have it centered along the X axis. You could get the same result with { ( $_.width - $_.mywidth ) / 2 } | |
$_.centermey | The number of pixels you would need to assign to a step's Y position to have it centered along the Y axis. You could get the same result with { ( $_.height - $_.myheight ) / 2 } |
|
$_.prevx | The number of pixels from the left of the component to the right of the previous step. | Example |
$_.prevy | The number of pixels from the top of the component to the bottom of the previous step. | Example |
$_.count | The total number of component records in the data set for this design. | |
$_.counter | A tally of the the number of component records thus far in the data set. Can be used with $_.count to to create a fraction of the total components. | |